Skip to content
Snippets Groups Projects
Commit 38e55d2b authored by Albert Feghaly's avatar Albert Feghaly
Browse files

Fix test line

parent 3c7b561e
No related branches found
No related tags found
1 merge request!40Resolve "Fix unit tests"
...@@ -28,7 +28,7 @@ class TestClient(unittest.TestCase): ...@@ -28,7 +28,7 @@ class TestClient(unittest.TestCase):
filename = 'test.txt' filename = 'test.txt'
lab_id = client.labs[client.labs.lab_name == 'Bioinformatique'].numerical_id.values[0] lab_id = client.labs[client.labs.lab_name == 'Bioinformatique'].numerical_id.values[0]
with io.BytesIO(b"Cool stuff") as f: with io.BytesIO(b"Cool stuff") as f:
r = client._file_upload('CHANGELOG.txt', filename, lab_id, test_ds_id, {'k': 'v'}) r = client._file_upload(f, filename, lab_id, test_ds_id, {'k': 'v'})
self.assertEqual(r.status_code, 200) self.assertEqual(r.status_code, 200)
self.test_ds_id = test_ds_id self.test_ds_id = test_ds_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment