starter_packs/tests.py::TestToggleStarterPackAccount::test_toggle_after_limit

First seen 1 month, 2 weeks ago in commit fd2a5 pushed by Anže Pečar

Last 100 Runs
Pass % 99.0%
p50 duration 0.9813s
p95 duration 1.1174s

41 runs 40 passed 1 failed in the last 30 days

Run 1 week, 1 day ago
Status FAIL
Commit

Add private support

Commit 52229 pushed by Anže Pečar
Repr
self = <starter_packs.tests.TestToggleStarterPackAccount testMethod=test_toggle_after_limit>

    def test_toggle_after_limit(self):
        account = baker.make("accounts.Account", discoverable=True)
        self.client.force_login(self.user)
        # baker.make("starter_packs.StarterPackAccount", starter_pack=self.starter_pack, account=account)
        baker.make("starter_packs.StarterPackAccount", starter_pack=self.starter_pack, _quantity=150)
    
        self.assertEqual(self.starter_pack.starterpackaccount_set.count(), 150)
        response = self.client.post(
            reverse(
                "toggle_account_to_starter_pack",
                kwargs={"starter_pack_slug": self.starter_pack.slug, "account_id": account.id},
            )
        )
>       self.assertEqual(response.status_code, 200)
E       AssertionError: 404 != 200

starter_packs/tests.py:226: AssertionError