Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_weight_class_from_wght_axis():
assert fontmake.instantiator.weight_class_from_wght_value(-500) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1.1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(500.6) == 501
assert fontmake.instantiator.weight_class_from_wght_value(1000) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.0) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.1) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(2000.1) == 1000
def test_weight_class_from_wght_axis():
assert fontmake.instantiator.weight_class_from_wght_value(-500) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1.1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(500.6) == 501
assert fontmake.instantiator.weight_class_from_wght_value(1000) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.0) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.1) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(2000.1) == 1000
def test_weight_class_from_wght_axis():
assert fontmake.instantiator.weight_class_from_wght_value(-500) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1.1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(500.6) == 501
assert fontmake.instantiator.weight_class_from_wght_value(1000) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.0) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.1) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(2000.1) == 1000
def test_weight_class_from_wght_axis():
assert fontmake.instantiator.weight_class_from_wght_value(-500) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1.1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(500.6) == 501
assert fontmake.instantiator.weight_class_from_wght_value(1000) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.0) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.1) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(2000.1) == 1000
def test_weight_class_from_wght_axis():
assert fontmake.instantiator.weight_class_from_wght_value(-500) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1.1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(500.6) == 501
assert fontmake.instantiator.weight_class_from_wght_value(1000) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.0) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.1) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(2000.1) == 1000
def test_weight_class_from_wght_axis():
assert fontmake.instantiator.weight_class_from_wght_value(-500) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1.1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(500.6) == 501
assert fontmake.instantiator.weight_class_from_wght_value(1000) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.0) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.1) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(2000.1) == 1000
def test_weight_class_from_wght_axis():
assert fontmake.instantiator.weight_class_from_wght_value(-500) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1.1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(500.6) == 501
assert fontmake.instantiator.weight_class_from_wght_value(1000) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.0) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.1) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(2000.1) == 1000
def test_weight_class_from_wght_axis():
assert fontmake.instantiator.weight_class_from_wght_value(-500) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1.1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(1) == 1
assert fontmake.instantiator.weight_class_from_wght_value(500.6) == 501
assert fontmake.instantiator.weight_class_from_wght_value(1000) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.0) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(1000.1) == 1000
assert fontmake.instantiator.weight_class_from_wght_value(2000.1) == 1000