Skip to content

Commit

Permalink
Fix test_model
Browse files Browse the repository at this point in the history
One of the other tests were impure, changing backend_fixtures.
This commit makes backend_fixtures to return a deep copy of backend_fixtures_json isntead of returning them directly.
  • Loading branch information
aversey committed Jul 11, 2024
1 parent 90ce2f2 commit acf485b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions keyFile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "service_account", "project_id": "test", "private_key_id": "123456", "private_key": "-----BEGIN PRIVATE KEY-----test-----END PRIVATE KEY-----", "client_email": "[email protected]"}
3 changes: 2 additions & 1 deletion python/tests/fixtures/backend_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# limitations under the License.
#

import copy
import json
import os

Expand Down Expand Up @@ -81,4 +82,4 @@

@pytest.fixture
def backend_fixtures():
return backend_fixtures_json
return copy.deepcopy(backend_fixtures_json)

0 comments on commit acf485b

Please sign in to comment.