Skip to content

Commit fd496f4

Browse files
committed
rm duplications
1 parent cb69d0f commit fd496f4

File tree

2 files changed

+0
-78
lines changed

2 files changed

+0
-78
lines changed

packages/notifications-library/src/notifications_library/_payments_repository.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

packages/notifications-library/tests/with_db/test__repository.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from models_library.products import ProductName
1212
from models_library.users import UserID
1313
from notifications_library._models import UserData
14-
from notifications_library._payments_repository import PaymentsDataRepo
1514
from notifications_library._repository import TemplatesRepo, UsersRepo
1615
from sqlalchemy.ext.asyncio.engine import AsyncEngine
1716

@@ -36,29 +35,6 @@ async def test_user_data_repo(
3635
assert got == user_data
3736

3837

39-
async def test_payments_data_repo(
40-
sqlalchemy_async_engine: AsyncEngine,
41-
user: dict[str, Any],
42-
product: dict[str, Any],
43-
successful_transaction: dict[str, Any],
44-
):
45-
repo = PaymentsDataRepo(sqlalchemy_async_engine)
46-
47-
# check once
48-
data = await repo.get_on_payed_data(
49-
user_id=user["id"], payment_id=successful_transaction["payment_id"]
50-
)
51-
52-
assert data.payment_id == successful_transaction["payment_id"]
53-
assert data.first_name == user["first_name"]
54-
assert data.last_name == user["last_name"]
55-
assert data.email == user["email"]
56-
assert data.product_name == product["name"]
57-
assert data.display_name == product["display_name"]
58-
assert data.vendor == product["vendor"]
59-
assert data.support_email == product["support_email"]
60-
61-
6238
async def test_templates_repo(
6339
sqlalchemy_async_engine: AsyncEngine,
6440
email_templates: dict[str, Any],

0 commit comments

Comments
 (0)