From 3bffcc8a84bf96ec2e9de1619446daa3b4f0f4e3 Mon Sep 17 00:00:00 2001 From: Cassidy Symons Date: Tue, 7 Jan 2025 15:20:40 -0800 Subject: [PATCH 1/2] Add SBI kit article code --- microsetta_private_api/db/patches/0143.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 microsetta_private_api/db/patches/0143.sql diff --git a/microsetta_private_api/db/patches/0143.sql b/microsetta_private_api/db/patches/0143.sql new file mode 100644 index 000000000..661b64159 --- /dev/null +++ b/microsetta_private_api/db/patches/0143.sql @@ -0,0 +1,2 @@ +-- Add article code for Skin Biome Initiative kit +INSERT INTO barcodes.daklapack_article (dak_article_code, short_description, detailed_description) VALUES ('3510007E', 'SBI 1matrix tube', 'SBI 1 matrix tube, American English'); From 200586cf466cfbb9fff176eebb0ffccd712de6dc Mon Sep 17 00:00:00 2001 From: Cassidy Symons Date: Tue, 7 Jan 2025 15:28:53 -0800 Subject: [PATCH 2/2] Unit tests --- microsetta_private_api/admin/tests/test_admin_repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/microsetta_private_api/admin/tests/test_admin_repo.py b/microsetta_private_api/admin/tests/test_admin_repo.py index f50bcaccf..c6109efab 100644 --- a/microsetta_private_api/admin/tests/test_admin_repo.py +++ b/microsetta_private_api/admin/tests/test_admin_repo.py @@ -1207,7 +1207,7 @@ def test_get_daklapack_articles_not_retired(self): with Transaction() as t: admin_repo = AdminRepo(t) articles = admin_repo.get_daklapack_articles() - self.assertEqual(8, len(articles)) + self.assertEqual(9, len(articles)) first_article = articles[0] first_article.pop("dak_article_id") self.assertEqual(FIRST_LIVE_DAK_ARTICLE, first_article) @@ -1216,7 +1216,7 @@ def test_get_daklapack_articles_all(self): with Transaction() as t: admin_repo = AdminRepo(t) articles = admin_repo.get_daklapack_articles(include_retired=True) - self.assertEqual(24, len(articles)) + self.assertEqual(25, len(articles)) first_article = articles[0] first_article.pop("dak_article_id") self.assertEqual(FIRST_DAK_ARTICLE, first_article)