Some bugs (box-management didn't work); Tags now on search and in box content
All checks were successful
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/labhelper) (push) Successful in 1m3s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/labhelper-data-loader) (push) Successful in 12s

This commit is contained in:
2026-01-04 11:10:12 +01:00
parent 68bd013ac9
commit 232d2270c3
7 changed files with 40 additions and 10 deletions

View File

@@ -706,12 +706,12 @@ class SearchApiTests(AuthTestCase):
results = response.json()['results']
self.assertEqual(len(results), 50)
def test_search_api_includes_type_and_box(self):
"""Search API results should include type and box info."""
def test_search_api_includes_tags_and_box(self):
"""Search API results should include tags and box info."""
response = self.client.get('/search/api/?q=ard')
self.assertEqual(response.status_code, 200)
results = response.json()['results']
self.assertEqual(results[0]['type'], 'Electronics')
self.assertEqual(results[0]['tags'], [])
self.assertEqual(results[0]['box'], 'BOX001')
def test_search_api_requires_login(self):