Skip to content

Some test fixes for test_stars.py #4347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/test_stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class TestTransactionPartnerBase:
user = transaction_partner_user().user


class TestTransactionPartner(TestTransactionPartnerBase):
class TestTransactionPartnerWithoutRequest(TestTransactionPartnerBase):
def test_slot_behaviour(self, transaction_partner):
inst = transaction_partner
for attr in inst.__slots__:
Expand Down Expand Up @@ -421,7 +421,7 @@ def test_to_dict(self, transaction_partner):

assert isinstance(tp_dict, dict)
assert tp_dict["type"] == transaction_partner.type
if hasattr(transaction_partner, "web_app"):
if hasattr(transaction_partner, "user"):
assert tp_dict["user"] == transaction_partner.user.to_dict()
if hasattr(transaction_partner, "withdrawal_state"):
assert tp_dict["withdrawal_state"] == transaction_partner.withdrawal_state.to_dict()
Expand Down Expand Up @@ -469,7 +469,7 @@ class TestRevenueWithdrawalStateBase:
url = "url"


class TestRevenueWithdrawalState(TestRevenueWithdrawalStateBase):
class TestRevenueWithdrawalStateWithoutRequest(TestRevenueWithdrawalStateBase):
def test_slot_behaviour(self, revenue_withdrawal_state):
inst = revenue_withdrawal_state
for attr in inst.__slots__:
Expand Down
Loading