@@ -286,13 +286,34 @@ def test_associate_contact_to_company_succeeds(hubspot_client: HubspotClient) ->
286286@pytest .mark .parametrize (
287287 "kwargs, expected_properties" ,
288288 [
289- ({"name" : "Test Organisation" }, {"name" : "Test Organisation" }),
290289 (
291- {"name" : "Test Organisation" , "active_subscription" : "scaleup" },
292- {"name" : "Test Organisation" , "active_subscription" : "scaleup" },
290+ {"name" : "Test Organisation" , "flagsmith_organisation_id" : 1 },
291+ {"name" : "Test Organisation" , "orgid_unique" : "1" },
292+ ),
293+ (
294+ {
295+ "name" : "Test Organisation" ,
296+ "active_subscription" : "scaleup" ,
297+ "flagsmith_organisation_id" : 1 ,
298+ },
299+ {
300+ "name" : "Test Organisation" ,
301+ "active_subscription" : "scaleup" ,
302+ "orgid_unique" : "1" ,
303+ },
304+ ),
305+ (
306+ {"active_subscription" : "scaleup" , "flagsmith_organisation_id" : 1 },
307+ {"active_subscription" : "scaleup" , "orgid_unique" : "1" },
308+ ),
309+ (
310+ {
311+ "name" : None ,
312+ "active_subscription" : None ,
313+ "flagsmith_organisation_id" : None ,
314+ },
315+ {},
293316 ),
294- ({"active_subscription" : "scaleup" }, {"active_subscription" : "scaleup" }),
295- ({"name" : None , "active_subscription" : None }, {}),
296317 ],
297318)
298319def test_update_company_calls_hubspot_api (
0 commit comments