From 6b858f777bebf510cc9a3648ff41384abb2612d3 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 11 Apr 2024 01:11:12 +0100 Subject: [PATCH] [CI] Increase migration test coverage (#6995) * also trigger CI on changes to test files * dummy change to test file * fix match pattern --- .github/workflows/qc_checks.yaml | 1 + src/backend/InvenTree/stock/test_migrations.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index b703f77990..d3f99e13bd 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -48,6 +48,7 @@ jobs: - 'src/backend/requirements.txt' - 'src/backend/requirements-dev.txt' migrations: + - '**/test_migrations.py' - '**/migrations/**' - '.github/workflows**' - 'src/backend/requirements.txt' diff --git a/src/backend/InvenTree/stock/test_migrations.py b/src/backend/InvenTree/stock/test_migrations.py index 1d2eb0f0b2..c052325f17 100644 --- a/src/backend/InvenTree/stock/test_migrations.py +++ b/src/backend/InvenTree/stock/test_migrations.py @@ -64,6 +64,7 @@ class TestSerialNumberMigration(MigratorTestCase): big_ref_item.serial, '9999999999999999999999999999999999999999999999999999999999999', ) + self.assertEqual(big_ref_item.serial_int, 0x7FFFFFFF)