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

Improve unit tests for Accessions and API #467

Merged
merged 9 commits into from
Jun 30, 2021
Merged

Improve unit tests for Accessions and API #467

merged 9 commits into from
Jun 30, 2021

Conversation

helrond
Copy link
Member

@helrond helrond commented Jun 28, 2021

Adding additional tests to cover functionality in Accession and API views and serializers. This also involved factoring out some smaller units of code from Accession views, which were really complicated and thus difficult to test.

Introduces fixtures and converts to TransactionTestCase (rather than TestCase) for more predictable database state.

Also debugs the setup of ClamAV - fetching definitions via wget is no longer supported, so we are now using freshclam

Fixes #456 fixes #457

Some tests have been commented out, but will be fixed as I work through the rest of the unit tests.

@helrond helrond changed the title Issue 457 Improve unit tests for Accessions and API Jun 28, 2021
@helrond helrond mentioned this pull request Jun 28, 2021
Copy link
Contributor

@bonniegee bonniegee left a comment

Choose a reason for hiding this comment

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

My only comments on this were fixed in #469--looks good!

@helrond helrond merged commit 1b26687 into v2.1 Jun 30, 2021
@helrond helrond deleted the issue-457 branch June 30, 2021 18:02
@helrond helrond mentioned this pull request Aug 16, 2021
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.

None yet

4 participants