We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8a3ceb commit 28d6cc8Copy full SHA for 28d6cc8
tests/test_generated_code.py
@@ -29,6 +29,22 @@ def test_get_auth_token_without_env(model_data_with_cleanup):
29
)
30
31
32
+def test_set_auth_token(model_data_with_cleanup):
33
+ generate_data(test_data_path, test_result_path)
34
+
35
+ _locals = locals()
36
+ program = """from .test_result import APIConfig
37
+assert APIConfig.get_access_token() is None
38
+APIConfig.set_access_token('foo_bar')
39
+assert APIConfig.get_access_token() == 'foo_bar'
40
+ """
41
+ exec(
42
+ program,
43
+ globals(),
44
+ _locals,
45
+ )
46
47
48
@pytest.mark.parametrize(
49
"library, use_orjson",
50
[
0 commit comments