Skip to content

Conversation

@haydenroche5
Copy link
Collaborator

The so-called fluent API unit tests are intermingled with the notecard.py tests in test_notecard.py. This commit separates these tests out into their own individual test files, corresponding to their respective modules (e.g. the methods in card.py are tested by test_card.py). This commit also adds a conftest.py that defines fixtures for testing the fluent APIs, since they all follow a very similar pattern. Specifically, these fixtures test that

  • The fluent API calls the Notecard API correctly.
  • The fluent API requires a valid Notecard object.

@haydenroche5 haydenroche5 self-assigned this Sep 14, 2023
The so-called fluent API unit tests are intermingled with the notecard.py tests
in test_notecard.py. This commit separates these tests out into their own
individual test files, corresponding to their respective modules (e.g. the
methods in card.py are tested by test_card.py). This commit also adds a
conftest.py that defines fixtures for testing the fluent APIs, since they all
follow a very similar pattern. Specifically, these fixtures test that

- The fluent API calls the Notecard API correctly.
- The fluent API requires a valid Notecard object.
@haydenroche5 haydenroche5 force-pushed the fluent_api_test_refactor branch from f4e08a8 to faa8d0c Compare September 14, 2023 18:26
@haydenroche5
Copy link
Collaborator Author

@bsatrom I know coverage is ticking down with these recent PRs, but rest assured that I have more testing coming that will bring it back up.

@haydenroche5 haydenroche5 merged commit 1ede5d6 into blues:main Sep 14, 2023
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.

2 participants