Skip to content

Commit 216b22c

Browse files
committed
account for having direct access to qiita main in tests
1 parent 5ac2380 commit 216b22c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

qiita_client/tests/test_qiita_client.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,10 @@ def test_delete_file_from_central(self):
502502
with open(fp_test, 'w') as f:
503503
f.write('This is a testfile content\n')
504504
self.clean_up_files.append(fp_test)
505-
self.qclient.push_file_to_central(fp_test)
506505

507506
# sanity check that test file has been deposited correctly
507+
# no push required, as in this test local and remote QIITA_BASE_DIR
508+
# is identical
508509
fp_obs = self.qclient.fetch_file_from_central(fp_test)
509510
self.assertTrue(exists(fp_obs))
510511

@@ -525,12 +526,6 @@ def test_delete_file_from_central(self):
525526
# qiita main filepath, returned by delete_file_from_central
526527
self.assertTrue(exists(fp_deleted))
527528

528-
# clean up test file directly after tests have passed
529-
if exists(fp_test):
530-
remove(fp_test)
531-
if exists(fp_obs):
532-
remove(fp_obs)
533-
534529

535530
if __name__ == '__main__':
536531
main()

0 commit comments

Comments
 (0)