Skip to content

Commit

Permalink
test: 재학생 인증 메서드 테스트 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunmin0317 committed Oct 18, 2023
1 parent 0e70abb commit b95d415
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Empty file added tests/__init__.py
Empty file.
19 changes: 19 additions & 0 deletions tests/test_auth.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import os
import unittest
from sangmyung_univ_auth import auth


class MyTestCase(unittest.TestCase):
def setUp(self):
self.username = os.getenv('USERNAME')
self.password = os.getenv('PASSWORD')

def test_authenticator(self):
res = auth(username=self.username, password=self.password)
self.assertTrue(res.is_auth)
res = auth(username='username', password='password')
self.assertFalse(res.is_auth)


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

0 comments on commit b95d415

Please sign in to comment.