mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-12-04 20:23:46 +03:00
setup: switch to running API coverage test using pytest
The API coverage test is no longer a special case. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
2
setup.py
2
setup.py
@@ -309,8 +309,6 @@ class my_test(Command):
|
|||||||
else:
|
else:
|
||||||
os.environ["PYTHONPATH"] = self.build_platlib
|
os.environ["PYTHONPATH"] = self.build_platlib
|
||||||
|
|
||||||
if "LIBVIRT_API_COVERAGE" in os.environ:
|
|
||||||
self.spawn([sys.executable, "sanitytest.py"])
|
|
||||||
pytest = self.find_pytest_path()
|
pytest = self.find_pytest_path()
|
||||||
subprocess.check_call([pytest])
|
subprocess.check_call([pytest])
|
||||||
|
|
||||||
|
|||||||
@@ -430,6 +430,3 @@ class LibvirtAPICoverage(unittest.TestCase):
|
|||||||
usedfunctions = validate_c_to_python_api_mappings(finalklassmap, gotfunctions)
|
usedfunctions = validate_c_to_python_api_mappings(finalklassmap, gotfunctions)
|
||||||
validate_python_to_c_api_mappings(gotfunctions, usedfunctions)
|
validate_python_to_c_api_mappings(gotfunctions, usedfunctions)
|
||||||
validate_c_api_bindings_present(finalklassmap)
|
validate_c_api_bindings_present(finalklassmap)
|
||||||
|
|
||||||
test = LibvirtAPICoverage()
|
|
||||||
test.test_libvirt_api()
|
|
||||||
Reference in New Issue
Block a user