Skip to content

Commit

Permalink
Renamed package name in tests and setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
armicron committed Mar 23, 2017
1 parent e86dab3 commit a7efc91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()

packages = find_packages(exclude=['tests*', 'tests', 'cognito/tests*', 'cdu*', 'cdu'])
packages = find_packages(exclude=['tests*', 'tests', 'warrant/tests*', 'cdu*', 'cdu'])

setup(
name='cognito',
name='warrant',
version='0.1',
packages=packages,
include_package_data=True,
Expand Down
7 changes: 5 additions & 2 deletions warrant/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ def test_check_token(self,session):
self.assertNotEquals(og_acc_token,self.user.access_token)


@patch('cognito.Cognito', autospec=True)
@patch('warrant.Cognito', autospec=True)
def test_validate_verification(self,cognito_user):
u = cognito_user(self.cognito_user_pool_id,self.app_id,
username=self.username)
u.validate_verification('4321')

@patch('cognito.Cognito', autospec=True)
@patch('warrant.Cognito', autospec=True)
def test_confirm_forgot_password(self,cognito_user):
u = cognito_user(self.cognito_user_pool_id, self.app_id,
username=self.username)
Expand Down Expand Up @@ -154,3 +154,6 @@ def test_set_attributes(self):
)
self.assertEquals(u.somerandom,'attribute')


if __name__ == '__main__':
unittest.main()

0 comments on commit a7efc91

Please sign in to comment.