mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-16 12:02:17 +00:00
009f74839f
In the `test_build` function, added support for the TEST_BUILD environment variable. Now, if the variable is set to True, the `test_build` function will run; otherwise, it will skip the test and output a related message. Additionally, introduced a new pytest fixture `if_test_build` to check if the test is enabled.
10 lines
201 B
Python
10 lines
201 B
Python
import os
|
|
|
|
import pytest
|
|
|
|
|
|
def test_build(if_test_build: bool):
|
|
if not if_test_build:
|
|
pytest.skip("TEST_BUILD not enabled")
|
|
assert os.system("python setup.py") == 0 # pragma: no cover
|