Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@paulineribeyre
Copy link
Contributor

Jira Ticket: PXP-9266

Improvements

  • Split "use SSL" and "isolation level" unit tests into their own file. The previous parametrization caused the tests to take 30+ min to run, because all tests that use the pg_driver fixture were ran 12 times

@PlanXCyborg
Copy link

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

Copy link
Contributor

@johnfrancismccann johnfrancismccann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! My only suggestion would be to use shared helper functions to reduce code duplication of the functional tests if possible (e.g. a helper for the four definitions of test_post_example_entities_together).

@paulineribeyre
Copy link
Contributor Author

@johnfrancismccann we could do that, but most sheepdog tests are duplicated in tests/integration/datadict and tests/integration/datadictwithobjid, reducing duplication would be a bigger refactor than just the 4 tests i copied

@paulineribeyre paulineribeyre force-pushed the feat/ssl-isolation-tests branch from d7e326e to 84aeb7d Compare January 26, 2022 15:46


def test_post_example_entities_together(client, pg_driver, cgci_blgsp, submitter):
def do_test_post_example_entities_together(client, submitter):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not importing it from datadict because the datadictwithobjid test data might be different

@paulineribeyre paulineribeyre merged commit 6b87baf into master Jan 26, 2022
@paulineribeyre paulineribeyre deleted the feat/ssl-isolation-tests branch January 26, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants