Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fail on [win] python 3.12 on github actions #3025

Open
ptsavol opened this issue Dec 18, 2024 · 0 comments
Open

Test fail on [win] python 3.12 on github actions #3025

ptsavol opened this issue Dec 18, 2024 · 0 comments

Comments

@ptsavol
Copy link
Member

ptsavol commented Dec 18, 2024

Somethings wrong with the test test_find_input_files in <spine-items>\tests\tool\test_Tool.py. It fails when Github action runs the test on Windows Python 3.12. It did not fail previously so something has changed on Github and I can not reproduce the problem locally (ie. it always passes locally). I skipped the test for now.

Output from github action:

==========================================
FAIL: test_find_input_files (tests.tool.test_Tool.TestTool.test_find_input_files)
Test that input files are correctly found in resources

Traceback (most recent call last):
File "D:\a\spine-items\spine-items\tests\tool\test_Tool.py", line 203, in test_find_input_files
self.assertTrue(expected_urls["url3"] in result["input1.csv"] or expected_urls["url1"] in result["input1.csv"])
AssertionError: False is not true


Ran 320 tests in 148.848s

FAILED (failures=1)

Where,

expected_urls:{'url1': 'C:\\\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp6xc8jry7\\more_files\\input1.csv', 'url2': 'C:\\\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp6xc8jry7\\more_files\\data.csv', 'url3': 'C:\\\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp6xc8jry7\\more filess\\input1.csv', 'url4': 'C:\\\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp6xc8jry7\\other.csv', 'url5': 'C:\\\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp6xc8jry7\\other\\input2.csv', 'url6': 'C:\\\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp6xc8jry7\\input3.csv'}
result:{'input2.csv': None, 'input1.csv': ['C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmp6xc8jry7\\more_files\\input1.csv']}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant