2929_ASYNC_RETRY_INTERVAL_SECONDS = 5
3030_ASYNC_TIMEOUT_SECONDS = 60
3131
32+
3233@pytest .fixture (scope = "module" )
3334def hrflow_client ():
3435 return Hrflow (
3536 api_secret = _var_from_env_get ("HRFLOW_API_KEY" ),
3637 api_user = _var_from_env_get ("HRFLOW_USER_EMAIL" ),
3738 )
3839
40+
3941def _profile_get () -> t .Dict [str , t .Any ]:
4042 return dict (
4143 reference = str (uuid4 ()),
@@ -330,7 +332,9 @@ def test_profile_parsing_file_quicksilver_async_basic(hrflow_client):
330332 assert _ASYNC_RETRY_INTERVAL_SECONDS > 0
331333 for _ in range (max (0 , _ASYNC_TIMEOUT_SECONDS // _ASYNC_RETRY_INTERVAL_SECONDS )):
332334 model = ProfileIndexingResponse .model_validate (
333- hrflow_client .profile .storing .get (source_key = SOURCE_KEY , reference = reference )
335+ hrflow_client .profile .storing .get (
336+ source_key = SOURCE_KEY , reference = reference
337+ )
334338 )
335339 if model .code == http_codes .ok :
336340 break
@@ -408,7 +412,9 @@ def test_profile_parsing_file_mozart_async_basic(hrflow_client):
408412 assert _ASYNC_RETRY_INTERVAL_SECONDS > 0
409413 for _ in range (max (0 , _ASYNC_TIMEOUT_SECONDS // _ASYNC_RETRY_INTERVAL_SECONDS )):
410414 model = ProfileIndexingResponse .model_validate (
411- hrflow_client .profile .storing .get (source_key = SOURCE_KEY , reference = reference )
415+ hrflow_client .profile .storing .get (
416+ source_key = SOURCE_KEY , reference = reference
417+ )
412418 )
413419 if model .code == http_codes .ok :
414420 break
@@ -514,7 +520,9 @@ def test_profile_asking_basic(hrflow_client):
514520 model = ProfileAskingResponse .model_validate (
515521 hrflow_client .profile .asking .get (
516522 source_key = SOURCE_KEY ,
517- key = _indexed_response_get (hrflow_client , SOURCE_KEY , _profile_get ()).data .key ,
523+ key = _indexed_response_get (
524+ hrflow_client , SOURCE_KEY , _profile_get ()
525+ ).data .key ,
518526 questions = [
519527 "What is the full name of the profile ?" ,
520528 ],
@@ -539,7 +547,9 @@ def test_profile_asking_multiple_questions(hrflow_client):
539547 hrflow_client .profile .asking .get (
540548 source_key = SOURCE_KEY ,
541549 questions = questions ,
542- key = _indexed_response_get (hrflow_client , SOURCE_KEY , _profile_get ()).data .key ,
550+ key = _indexed_response_get (
551+ hrflow_client , SOURCE_KEY , _profile_get ()
552+ ).data .key ,
543553 )
544554 )
545555 assert model .code == http_codes .ok
@@ -556,7 +566,9 @@ def test_profile_asking_no_question(hrflow_client):
556566 model = ProfileAskingResponse .model_validate (
557567 hrflow_client .profile .asking .get (
558568 source_key = SOURCE_KEY ,
559- key = _indexed_response_get (hrflow_client , SOURCE_KEY , _profile_get ()).data .key ,
569+ key = _indexed_response_get (
570+ hrflow_client , SOURCE_KEY , _profile_get ()
571+ ).data .key ,
560572 questions = None ,
561573 )
562574 )
0 commit comments