-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear authorization_expires if it is no longer set.
- Loading branch information
1 parent
fefed3d
commit 120ee02
Showing
2 changed files
with
13 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,7 +200,7 @@ def test_remote_authenticate( | |
assert "[email protected]" == patrondata.email_address | ||
assert "LE CARRÉ, JOHN" == patrondata.personal_name | ||
assert 0 == patrondata.fines | ||
assert patrondata.authorization_expires is None | ||
assert PatronData.NO_VALUE == patrondata.authorization_expires | ||
assert patrondata.external_type is None | ||
assert PatronData.NO_VALUE == patrondata.block_reason | ||
|
||
|
@@ -417,7 +417,7 @@ def test_encoding( | |
assert "[email protected]" == patrondata.email_address | ||
assert "LE CARRÉ, JOHN" == patrondata.personal_name | ||
assert 0 == patrondata.fines | ||
assert patrondata.authorization_expires is None | ||
assert PatronData.NO_VALUE == patrondata.authorization_expires | ||
assert patrondata.external_type is None | ||
assert PatronData.NO_VALUE == patrondata.block_reason | ||
|
||
|
@@ -560,7 +560,7 @@ def test_info_to_patrondata_validate_password( | |
assert "[email protected]" == patron.email_address | ||
assert "LE CARRÉ, JOHN" == patron.personal_name | ||
assert 0 == patron.fines | ||
assert patron.authorization_expires is None | ||
assert PatronData.NO_VALUE == patron.authorization_expires | ||
assert patron.external_type is None | ||
assert PatronData.NO_VALUE == patron.block_reason | ||
|
||
|
@@ -592,7 +592,7 @@ def test_info_to_patrondata_no_validate_password( | |
assert "[email protected]" == patron.email_address | ||
assert "LE CARRÉ, JOHN" == patron.personal_name | ||
assert 0 == patron.fines | ||
assert patron.authorization_expires is None | ||
assert PatronData.NO_VALUE == patron.authorization_expires | ||
assert patron.external_type is None | ||
assert PatronData.NO_VALUE == patron.block_reason | ||
|
||
|
@@ -606,7 +606,7 @@ def test_info_to_patrondata_no_validate_password( | |
assert "[email protected]" == patron.email_address | ||
assert "SHELDON, ALICE" == patron.personal_name | ||
assert 0 == patron.fines | ||
assert patron.authorization_expires is None | ||
assert PatronData.NO_VALUE == patron.authorization_expires | ||
assert patron.external_type is None | ||
assert "no borrowing privileges" == patron.block_reason | ||
|
||
|