Skip to content

Commit

Permalink
really fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrickboom committed Oct 31, 2024
1 parent 0dbeb8c commit 5bcd0a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/docker-setup/uninhibit.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function IncomingHttpRequestFilter(method, uri, ip, username, httpHeaders)
return true
end
4 changes: 4 additions & 0 deletions tests/test_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ def test_upload_folder_return_details_error_case(self):
self.assertEqual(0, len(orthanc_ids_set))
self.assertEqual(9, len(rejected_files_list))

# let's uninhibit the destination
with open(here / "docker-setup/uninhibit.lua", 'rb') as f:
lua_script = f.read()
self.oa.execute_lua_script(lua_script)

def test_upload_file_dicom_web(self):
self.oa.delete_all_content()
Expand Down

0 comments on commit 5bcd0a6

Please sign in to comment.