Page MenuHomeSoftware Heritage

tests: Add tox.ini and migrate to pytest
ClosedPublic

Authored by ardumont on Oct 23 2018, 6:58 PM.

Diff Detail

Repository
rDVAU Software Heritage Vault
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Oct 23 2018, 7:29 PM

In fact, no, since the test do require a pg setup, tox needs to run them via pifpaf

This revision now requires changes to proceed.Oct 23 2018, 7:31 PM

There also missing test requirements: dulwich and swh.loader.git

These should be added in a commit included in this Diff

huh, right!
I just realize i ran make test instead of tox...

Thanks.

There also missing test requirements: dulwich and swh.loader.git

There is also a runtime dependency on git...
And there is nowhere to define that here.
Except in the debian/control file but i do not touch as this will be reworked pretty soon and that will not solve the problem in that ci's particular job, i think.

Just fixing what's not correct for now

  • tox.ini: Run tests through pifpaf
  • requirements-tests.txt: Add missing tests dependencies

Note:
I still need to track db connections issues

I still need to track db connections issues

~> P322 for details.

I think that's an instance of the issue reported at T826 (not solved yet) about test and implicit loading configuration.
I see some service=swh-dev which is my user configuration...

  • tests: Remove pep8 violations
  • tests: Mark tox failing tests and avoid running them for now
This revision is now accepted and ready to land.Oct 24 2018, 3:49 PM
This revision was automatically updated to reflect the committed changes.