File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,15 @@ def test_create_sub_org_and_invite_new_user(admin_auth_headers):
68
68
new_subs_oid = org_id
69
69
70
70
71
+ def test_validate_new_org_not_activated (admin_auth_headers ):
72
+ r = requests .get (
73
+ f"{ API_PREFIX } /orgs/{ new_subs_oid } /subscriptions/is-activated/123" ,
74
+ heaqders = admin_auth_headers ,
75
+ )
76
+ assert r .status_code == 200
77
+ assert r .json ()["success" ] is False
78
+
79
+
71
80
def test_validate_new_org_with_quotas_and_name_is_uid (admin_auth_headers ):
72
81
r = requests .get (f"{ API_PREFIX } /orgs/{ new_subs_oid } " , headers = admin_auth_headers )
73
82
assert r .status_code == 200
@@ -126,6 +135,15 @@ def test_validate_new_org_with_quotas_and_update_name(admin_auth_headers):
126
135
assert "subscription" in data
127
136
128
137
138
+ def test_validate_new_org_is_activated (admin_auth_headers ):
139
+ r = requests .get (
140
+ f"{ API_PREFIX } /orgs/{ new_subs_oid } /subscriptions/is-activated/123" ,
141
+ heaqders = admin_auth_headers ,
142
+ )
143
+ assert r .status_code == 200
144
+ assert r .json ()["success" ] is True
145
+
146
+
129
147
def test_create_sub_org_and_invite_existing_user_dupe_sub (admin_auth_headers ):
130
148
r = requests .post (
131
149
f"{ API_PREFIX } /subscriptions/create" ,
You can’t perform that action at this time.
0 commit comments