Skip to content

Commit

Permalink
Remove leftover code
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Ernst committed Oct 12, 2024
1 parent f145422 commit 02f0073
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def account_manager() -> StaticAccountManager:

ret = StaticAccountManager(initial_accounts, initial_non_existing_accounts)
return ret
node_driver.provision_node('test', node_config, account_manager)


def test_initial_accounts(account_manager: StaticAccountManager) -> None:
Expand Down Expand Up @@ -100,7 +99,7 @@ def test_allocates_accounts_correctly(account_manager: StaticAccountManager) ->
acc2 = cast(FediverseAccount | None, account_manager.obtain_account_by_role('role2'))
assert acc2
assert acc2.role is None
assert acc2.userid == f'user-2-unallocated'
assert acc2.userid == 'user-2-unallocated'


def test_allocates_non_existing_accountscorrectly(account_manager: StaticAccountManager) -> None:
Expand All @@ -117,12 +116,12 @@ def test_allocates_non_existing_accountscorrectly(account_manager: StaticAccount
acc0 = cast(FediverseNonExistingAccount | None, account_manager.obtain_non_existing_account_by_role('role0'))
assert acc0
assert acc0.role is None
assert acc0.userid == f'nonuser-0-unallocated'
assert acc0.userid == 'nonuser-0-unallocated'

acc2 = cast(FediverseNonExistingAccount | None, account_manager.get_non_existing_account_by_role('role2'))
assert acc2 is None

acc2 = cast(FediverseNonExistingAccount | None, account_manager.obtain_non_existing_account_by_role('role2'))
assert acc2
assert acc2.role is None
assert acc2.userid == f'nonuser-2-unallocated'
assert acc2.userid == 'nonuser-2-unallocated'

0 comments on commit 02f0073

Please sign in to comment.