mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 01:55:39 +00:00
Fix unit tests (#6932)
* Fix unit test * Fix script pathing * Fix pathing in version_check.py * Fix mkdocs.yml
This commit is contained in:
4
.github/scripts/version_check.py
vendored
4
.github/scripts/version_check.py
vendored
@ -92,7 +92,9 @@ def check_version_number(version_string, allow_duplicate=False):
|
||||
if __name__ == '__main__':
|
||||
if 'only_version' in sys.argv:
|
||||
here = Path(__file__).parent.absolute()
|
||||
version_file = here.joinpath('..', 'InvenTree', 'InvenTree', 'api_version.py')
|
||||
version_file = here.joinpath(
|
||||
'..', '..', 'src', 'backend', 'InvenTree', 'InvenTree', 'api_version.py'
|
||||
)
|
||||
text = version_file.read_text()
|
||||
results = re.findall(r"""INVENTREE_API_VERSION = (.*)""", text)
|
||||
print(results[0])
|
||||
|
Reference in New Issue
Block a user