Changeset 1d92bf2 in OpenWorkouts-current for ow/tests/schemas/test_user.py
- Timestamp:
- Dec 16, 2018, 1:07:04 AM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 6560b8f
- Parents:
- 929097a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/tests/schemas/test_user.py
r929097a r1d92bf2 4 4 5 5 from ow.models.user import User 6 from ow.schemas.user import PasswordMatch, Unique Username, UniqueEmail6 from ow.schemas.user import PasswordMatch, UniqueNickname, UniqueEmail 7 7 8 8 … … 27 27 28 28 29 class TestUnique Username(object):29 class TestUniqueNickname(object): 30 30 31 31 @pytest.fixture … … 35 35 36 36 def test_validate_python_exists(self, state): 37 validator = Unique Username()37 validator = UniqueNickname() 38 38 with pytest.raises(Invalid): 39 39 validator._validate_python('test', state) … … 42 42 43 43 def test_validate_python_not_exists(self, state): 44 validator = Unique Username()44 validator = UniqueNickname() 45 45 res = validator._validate_python('not-existing', state) 46 46 assert res is None
Note: See TracChangeset
for help on using the changeset viewer.