Skip to content

Commit

Permalink
Refactor ManufacturerRepo unit tests #312
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Jul 2, 2024
1 parent 9190c10 commit 47ffc3f
Show file tree
Hide file tree
Showing 2 changed files with 669 additions and 560 deletions.
39 changes: 39 additions & 0 deletions test/mock_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,45 @@
# at runtime
CREATED_MODIFIED_GET_DATA_EXPECTED = {"created_time": ANY, "modified_time": ANY}

# --------------------------------- MANUFACTURERS ---------------------------------

MANUFACTURER_POST_DATA_A = {
"name": "Manufacturer A",
"url": "http://testUrl.co.uk",
"address": {
"address_line": "1 Example Street",
"town": "Oxford",
"county": "Oxfordshire",
"postcode": "OX1 2AB",
"country": "United Kingdom",
},
"telephone": "0932348348",
}

MANUFACTURER_POST_DATA_B = {
"name": "Manufacturer B",
"url": "http://example.co.uk",
"address": {
"address_line": "2 Example Street",
"town": "Oxford",
"county": "Oxfordshire",
"postcode": "OX1 2AB",
"country": "United Kingdom",
},
"telephone": "073434394",
}

MANUFACTURER_IN_DATA_A = {
**MANUFACTURER_POST_DATA_A,
"code": "manufacturer-a",
}

MANUFACTURER_IN_DATA_B = {
**MANUFACTURER_POST_DATA_B,
"code": "manufacturer-b",
}

# --------------------------------- SYSTEMS ---------------------------------

SYSTEM_POST_DATA_NO_PARENT_A = {
"parent_id": None,
Expand Down
Loading

0 comments on commit 47ffc3f

Please sign in to comment.