Skip to content

test(dblog): clear process-instance table in setUp for test isolation - #712

Open
C1-BA-B1-F3 wants to merge 1 commit into
geopython:mainfrom
C1-BA-B1-F3:fix/dblog-test-isolation
Open

C1-BA-B1-F3 wants to merge 1 commit into
geopython:mainfrom
C1-BA-B1-F3:fix/dblog-test-isolation

Conversation

@C1-BA-B1-F3

Copy link
Copy Markdown

Summary

test_db_content asserts the process_instance table has no rows with time_end == None, status == None, or percent_done < 100. When other tests run first they may leave rows in the table, making the assertions fail depending on test order.

Fix

Delete all rows from ProcessInstance in setUp so the test starts from a known empty state whether run alone or after other tests.

Fixes #679

test_db_content asserts the process-instance table is empty, but other
tests may have left rows there, making the result order-dependent.
Delete all rows in setUp so the test passes whether run alone or after
other tests.

Fixes geopython#679

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

DBLog test are bound to other test

1 participant