|
1 | 1 | import json |
2 | 2 | import typing as t |
3 | 3 | from time import sleep |
4 | | -from uuid import uuid4 |
| 4 | +from uuid import uuid1 |
5 | 5 |
|
6 | 6 | import pytest |
7 | 7 | from requests import codes as http_codes |
@@ -40,7 +40,7 @@ def hrflow_client(): |
40 | 40 |
|
41 | 41 | def _profile_get() -> t.Dict[str, t.Any]: |
42 | 42 | return dict( |
43 | | - reference=str(uuid4()), |
| 43 | + reference=str(uuid1()), |
44 | 44 | text_language="en", |
45 | 45 | text=( |
46 | 46 | "Harry James PotterSorcerer Apprenticedate of birth: June 26th 1997Number" |
@@ -320,7 +320,7 @@ def test_profile_parsing_file_quicksilver_async_basic(hrflow_client): |
320 | 320 | teams/fc9d40fd60e679119130ea74ae1d34a3e22174f2/sources/06d96aab2661b16eaf4d34d385d\ |
321 | 321 | 3c2b0cf00c0eb/profiles/d79768fb63013a8bdd04e7e8742cc84afd428a87/parsing/resume.pdf""" |
322 | 322 | file = _file_get(s3_url, "profile_async") |
323 | | - reference = str(uuid4()) |
| 323 | + reference = str(uuid1()) |
324 | 324 | model = ProfileParsingFileResponse.model_validate( |
325 | 325 | hrflow_client.profile.parsing.add_file( |
326 | 326 | source_key=SOURCE_KEY, |
@@ -400,7 +400,7 @@ def test_profile_parsing_file_mozart_async_basic(hrflow_client): |
400 | 400 | teams/fc9d40fd60e679119130ea74ae1d34a3e22174f2/sources/06d96aab2661b16eaf4d34d385d\ |
401 | 401 | 3c2b0cf00c0eb/profiles/d79768fb63013a8bdd04e7e8742cc84afd428a87/parsing/resume.pdf""" |
402 | 402 | file = _file_get(s3_url, "profile_async") |
403 | | - reference = str(uuid4()) |
| 403 | + reference = str(uuid1()) |
404 | 404 | model = ProfileParsingFileResponse.model_validate( |
405 | 405 | hrflow_client.profile.parsing.add_file( |
406 | 406 | source_key=SOURCE_KEY, |
@@ -632,7 +632,7 @@ def test_profile_archive_basic(hrflow_client): |
632 | 632 | def test_profile_editing_basic(hrflow_client): |
633 | 633 | SOURCE_KEY = _var_from_env_get("HRFLOW_SOURCE_KEY_QUICKSILVER_SYNC") |
634 | 634 | mock_profile = _indexed_response_get(hrflow_client, SOURCE_KEY, _profile_get()).data |
635 | | - mock_profile.text = f"The password of my bitcoin wallet is {uuid4()}." |
| 635 | + mock_profile.text = f"The password of my bitcoin wallet is {uuid1()}." |
636 | 636 | model = ProfileIndexingResponse.model_validate( |
637 | 637 | hrflow_client.profile.storing.edit( |
638 | 638 | source_key=SOURCE_KEY, |
|
0 commit comments