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

Running all tests at once causes failure of test for Wrapper.py #192

Open
eggplants opened this issue Jan 13, 2022 · 1 comment
Open

Running all tests at once causes failure of test for Wrapper.py #192

eggplants opened this issue Jan 13, 2022 · 1 comment

Comments

@eggplants
Copy link
Contributor

eggplants commented Jan 13, 2022

https://github.com/eggplants/sparqlwrapper/runs/4798682454

$ python -m unittest test/test_wrapper.py -v
...
Ran 35 tests in 0.468s

OK (skipped=1)

$ python -m unittest -v
...
======================================================================
FAIL: testConvert (test.test_wrapper.QueryResult_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/sparqlwrapper/sparqlwrapper/test/test_wrapper.py", line 886, in testConvert
    self.assertEqual(1, _mime_vs_type("application/x-foo-bar", XML), "invalid mime")
AssertionError: 1 != 0 : invalid mime

======================================================================
FAIL: testPrint_results (test.test_wrapper.QueryResult_Test)
print_results() is only allowed for JSON return format.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/sparqlwrapper/sparqlwrapper/test/test_wrapper.py", line 938, in testPrint_results
    self.assertEqual(1, _print_results("application/sparql-results+xml"))
AssertionError: 1 != 0

======================================================================
FAIL: testSetReturnFormat (test.test_wrapper.SPARQLWrapper_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/sparqlwrapper/sparqlwrapper/test/test_wrapper.py", line 198, in testSetReturnFormat
    self.assertEqual(1, len(w), "Warning due to non expected format")
AssertionError: 1 != 0 : Warning due to non expected format

----------------------------------------------------------------------
Ran 1335 tests in 845.111s

FAILED (failures=3, skipped=476, expected failures=65)

The reason is unknown...

@eggplants eggplants changed the title Running a batch of tests causes cli_test to fail Running a batch of tests causes wrapper_test to fail Jan 13, 2022
@eggplants eggplants changed the title Running a batch of tests causes wrapper_test to fail Running a batch of tests causes failure of test for Wrapper.py Jan 13, 2022
@eggplants eggplants changed the title Running a batch of tests causes failure of test for Wrapper.py Running all tests at once causes failure of test for Wrapper.py Jan 13, 2022
@eggplants
Copy link
Contributor Author

This issue is resolved When testing with pytest.
#214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant