From a0c0bf7931eac69b45a53ef79c34c77b733a5066 Mon Sep 17 00:00:00 2001 From: yann Date: Wed, 27 Aug 2025 10:15:30 +0200 Subject: [PATCH] more collab tests --- tests/authentication/test_authentication.py | 6 ++++-- tests/conftest.py | 4 ++-- tests/tools/test_tools.py | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/authentication/test_authentication.py b/tests/authentication/test_authentication.py index 9b28724..caa5c32 100644 --- a/tests/authentication/test_authentication.py +++ b/tests/authentication/test_authentication.py @@ -1,9 +1,11 @@ class TestPasswordTool: - def test_check(self): + def test_check_wrong_user(self): + pass + + def test_check_wrong_pwd(self): pass def get_by_name(self): pass - \ No newline at end of file diff --git a/tests/conftest.py b/tests/conftest.py index d198bd8..2cb9a49 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,7 +10,7 @@ engine = create_engine(DB_URL, echo=False) SessionLocal = sessionmaker(bind=engine) cust1 = ("Cust1", "aa", 11, "Cust1CO") -cust2 = +cust2 = ("Cust2", "bb", 22, "Cust2CO") @pytest.fixture def session(): @@ -31,7 +31,7 @@ def session(): def seed(session): session.add_all( [ - Customer(cust1), + Customer(name="Cust1", email="aa", phone=11, company="Cust1CO"), Customer(name="Cust2", email="bb", phone=22, company="Cust2CO"), ] ) diff --git a/tests/tools/test_tools.py b/tests/tools/test_tools.py index 65d5056..5bbd546 100644 --- a/tests/tools/test_tools.py +++ b/tests/tools/test_tools.py @@ -17,7 +17,7 @@ class TestCustomerTools: def test_should_create_customer(self, seed, session, monkeypatch): CustomerTools(session).create(1) - monkeypatch.setattr() + pass def test_delete_user_should_remove_from_db(self, seed, session): pass @@ -28,6 +28,7 @@ class TestCollaboratorTools: def test_should_reply_id_by_name(self, seed, session): tool = CollaboratorTools(session) reply = tool.get_id_by_name("Col1") + assert reply == 1 def test_should_reply_id_by_team_id(self, seed, session): pass