Skip to content

Commit

Permalink
Fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangeetha-Bheeman committed Oct 18, 2022
1 parent 90f9cbe commit de8dcc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baracoda/sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ CREATE TABLE alembic_version
INSERT INTO alembic_version
(version_num)
VALUES
('e501839465f6');
('bcd74f0a02ea');
4 changes: 3 additions & 1 deletion tests/test_barcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def test_get_new_barcode_for_sqp(client):

def test_get_new_barcodes_group_as_url_param(client):
response = client.post("/barcodes_group/SANG/new?count=3")
assert response.json == {"barcodes_group": {"barcodes": ["SANG-30D404", "SANG-30D413", "SANG-30D422"], "id": 1}}
resp = response.json
resp["barcodes_group"]["barcodes"].sort()
assert resp == {"barcodes_group": {"barcodes": ["SANG-30D404", "SANG-30D413", "SANG-30D422"], "id": 1}}
assert response.status_code == HTTPStatus.CREATED


Expand Down

0 comments on commit de8dcc1

Please sign in to comment.