Page MenuHomeSoftware Heritage

Move tests_migration/test_migrations.py to tests/test_migrations.py
ClosedPublic

Authored by vlorentz on Feb 24 2022, 12:04 PM.

Details

Summary

This fixes crashes when running 'pytest -k migration', because swh/deposit/tests_migration/
lacks a conftest to initialize the database.

Diff Detail

Repository
rDDEP Push deposit
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D7240 (id=26249)

Rebasing onto ccff46762b...

First, rewinding head to replay your work on top of it...
Applying: Move tests_migration/test_migrations.py to tests/test_migrations.py
Changes applied before test
commit c1a83c22543527fe1568bd21d316ff914d239445
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Feb 24 12:04:03 2022 +0100

    Move tests_migration/test_migrations.py to tests/test_migrations.py
    
    This fixes crashes when running 'pytest -k migration', because swh/deposit/tests_migration/
    lacks a conftest to initialize the database.

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/758/ for more details.

This revision is now accepted and ready to land.Feb 24 2022, 3:39 PM

Build is green

Patch application report for D7240 (id=26299)

Rebasing onto ccff46762b...

Current branch diff-target is up to date.
Changes applied before test
commit 8a7e0832641bda3b4c445793cfb92e3de6c5947e
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Feb 24 12:04:03 2022 +0100

    Move tests_migration/test_migrations.py to tests/test_migrations.py
    
    This fixes crashes when running 'pytest -k migration', because swh/deposit/tests_migration/
    lacks a conftest to initialize the database.

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/780/ for more details.