mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-28 01:46:22 +02:00
Increase storage test coverage (#435)
* Fixing storage and adding tests * PR pipeline only runs quick tests
This commit is contained in:
parent
4daa54abaf
commit
f37decea2b
33 changed files with 7606 additions and 754 deletions
|
|
@ -383,4 +383,22 @@ def sample_kg_triples():
|
|||
|
||||
|
||||
# Test markers for integration tests
|
||||
pytestmark = pytest.mark.integration
|
||||
pytestmark = pytest.mark.integration
|
||||
|
||||
|
||||
def pytest_sessionfinish(session, exitstatus):
|
||||
"""
|
||||
Called after whole test run finished, right before returning the exit status.
|
||||
|
||||
This hook is used to ensure Cassandra driver threads have time to shut down
|
||||
properly before pytest exits, preventing "cannot schedule new futures after
|
||||
shutdown" errors.
|
||||
"""
|
||||
import time
|
||||
import gc
|
||||
|
||||
# Force garbage collection to clean up any remaining objects
|
||||
gc.collect()
|
||||
|
||||
# Give Cassandra driver threads more time to clean up
|
||||
time.sleep(2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue