Added test_upload

This commit is contained in:
Micah Lee 2019-11-10 11:33:59 -08:00
parent 329339dab8
commit 4dde85e4f6
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 20 additions and 3 deletions

View file

@ -50,6 +50,11 @@ class GuiBaseTest(unittest.TestCase):
with open(cls.tmpfile_test, "w") as file:
file.write("onionshare")
# A file called "test2.txt"
cls.tmpfile_test2 = os.path.join(cls.tmpdir.name, "test2.txt")
with open(cls.tmpfile_test2, "w") as file:
file.write("onionshare2")
# A large file
size = 1024 * 1024 * 155
cls.tmpfile_large = os.path.join(cls.tmpdir.name, "large_file")