66import sys
77import os
88
9- sys .path .append (os .path .abspath (os .path .join (' src' )))
9+ sys .path .append (os .path .abspath (os .path .join (" src" )))
1010
1111from sumo .wrapper import SumoClient
1212
@@ -56,8 +56,7 @@ def _upload_child_level_json(C, parent_id, json):
5656 response = C .api .post (f"/objects('{ parent_id } ')" , json = json )
5757
5858 if not 200 <= response .status_code < 202 :
59- raise Exception (
60- f"Response: { response .status_code } , Text: { response .text } " )
59+ raise Exception (f"Response: { response .status_code } , Text: { response .text } " )
6160 return response
6261
6362
@@ -77,6 +76,7 @@ class ValueKeeper:
7776
7877import uuid
7978
79+
8080def test_upload_search_delete_ensemble_child (token ):
8181 """
8282 Testing the wrapper functionalities.
@@ -101,7 +101,7 @@ def test_upload_search_delete_ensemble_child(token):
101101 assert isinstance (response_case .json (), dict )
102102
103103 case_id = response_case .json ().get ("objectid" )
104- assert ( case_id == case_uuid )
104+ assert case_id == case_uuid
105105
106106 sleep (5 )
107107
@@ -111,8 +111,7 @@ def test_upload_search_delete_ensemble_child(token):
111111
112112 fmu_surface_metadata ["fmu" ]["case" ]["uuid" ] = case_uuid
113113
114- fmu_surface_id = fmu_surface_metadata .get (
115- "fmu" ).get ("realization" ).get ("id" )
114+ fmu_surface_id = fmu_surface_metadata .get ("fmu" ).get ("realization" ).get ("id" )
116115 response_surface = _upload_child_level_json (
117116 C = C , parent_id = case_id , json = fmu_surface_metadata
118117 )
0 commit comments