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

Refactor tests #178

Open
Tracked by #169
nsorros opened this issue Dec 14, 2021 · 4 comments
Open
Tracked by #169

Refactor tests #178

nsorros opened this issue Dec 14, 2021 · 4 comments
Labels
good first issue Good for newcomers

Comments

@nsorros
Copy link
Contributor

nsorros commented Dec 14, 2021

Problems

  • tests contain a lot of duplicate code that can be refactored for example creating test data on the fly and training models needed to test certain functions
  • do not make full use of pytest fixtures everywhere. for example for creating temp folders
@nsorros nsorros added the good first issue Good for newcomers label Dec 14, 2021
@nsorros nsorros mentioned this issue Dec 14, 2021
9 tasks
@aCampello
Copy link
Contributor

In addition to this, it seems that we are testing on tox AND pytest:

        $(VIRTUALENV)/bin/pytest --disable-warnings -v --cov=grants_tagger
        $(VIRTUALENV)/bin/tox

Isn't the second one redundant?

@nsorros
Copy link
Contributor Author

nsorros commented Aug 31, 2022

i think that pytest is testing with the development environment installed while tox with the library installed. these are two different environments.

@aCampello
Copy link
Contributor

That a makes sense - but the tests are the same - in principle we could drop one?

@nsorros
Copy link
Contributor Author

nsorros commented Sep 2, 2022

That a makes sense - but the tests are the same - in principle we could drop one?

definitely but its like running the same tests on different python versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants