def test_standard_attributes__re_classify(reset_sys_argv): """If reclassify is set, classifiers should be in the unconfigured set.""" conf = Config() conf.classifiers = ["fake things"] sys.argv = ["py-build", "-R"] attrs = configure.standard_attributes(conf, get_options()) assert "classifiers" in attrs
def test_standard_attributes(reset_sys_argv, move_home_pypackage): """Ensure the standard attribute set.""" conf = Config() expected_attrs = list(conf._KEYS.keys())[:conf._STD_TO_EXTD_INDEX] conf.name = "foobar" conf.classifiers = ["fake classifier"] expected_attrs.remove("name") expected_attrs.remove("classifiers") attrs = configure.standard_attributes(conf, get_options()) assert attrs == expected_attrs
def test_standard_attributes(reset_sys_argv, move_home_pypackage): """Ensure the standard attribute set.""" conf = Config() expected_attrs = list(conf._KEYS.keys())[:17] conf.name = "foobar" conf.classifiers = ["fake classifier"] expected_attrs.remove("name") expected_attrs.remove("classifiers") attrs = configure.standard_attributes(conf, get_options()) assert attrs == expected_attrs