MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / teardown

Function teardown

api/e2etests/e2e_seed_data.py:44–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def teardown() -> None:
45 # delete users and their orgs created for e2e test by front end
46 delete_user_and_its_organisations(user_email=settings.E2E_SIGNUP_USER)
47 delete_user_and_its_organisations(user_email=settings.E2E_USER)
48 delete_user_and_its_organisations(user_email=settings.E2E_CHANGE_EMAIL_USER)
49 delete_user_and_its_organisations(
50 user_email=settings.E2E_NON_ADMIN_USER_WITH_ORG_PERMISSIONS
51 )
52 delete_user_and_its_organisations(
53 user_email=settings.E2E_NON_ADMIN_USER_WITH_PROJECT_PERMISSIONS
54 )
55 delete_user_and_its_organisations(
56 user_email=settings.E2E_NON_ADMIN_USER_WITH_ENV_PERMISSIONS
57 )
58 delete_user_and_its_organisations(
59 user_email=settings.E2E_NON_ADMIN_USER_WITH_A_ROLE
60 )
61 delete_user_and_its_organisations(user_email=settings.E2E_SEPARATE_TEST_USER)
62 delete_user_and_its_organisations(user_email=settings.E2E_BILLING_USER)
63
64
65def seed_data() -> None:

Callers 1

postMethod · 0.90

Calls 1

Tested by

no test coverage detected