This repository has been archived by the owner on Jul 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from AusDTO/supplier-id
Supplier ID -> Supplier Code
- Loading branch information
Showing
4 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ def user_json(): | |
"locked": False, | ||
"active": True, | ||
"supplier": { | ||
"supplierId": 321, | ||
"supplierCode": 321, | ||
"name": "test supplier", | ||
} | ||
} | ||
|
@@ -76,15 +76,15 @@ def test_User_from_json_with_supplier(): | |
'locked': False, | ||
'active': True, | ||
'supplier': { | ||
'supplierId': 321, | ||
'supplierCode': 321, | ||
'name': 'test supplier', | ||
} | ||
}}) | ||
assert user.id == 123 | ||
assert user.name == 'Name' | ||
assert user.role == 'supplier' | ||
assert user.email_address == '[email protected]' | ||
assert user.supplier_id == 321 | ||
assert user.supplier_code == 321 | ||
assert user.supplier_name == 'test supplier' | ||
|
||
|
||
|