Make tests look in the source code tree for resources

This commit is contained in:
Micah Lee 2018-02-10 12:57:05 -08:00
parent a7ab1d7e6e
commit e7e9e0ea13
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -1,13 +1,15 @@
import sys
# Force tests to look for resources in the source code tree
sys.onionshare_dev_mode = True
import os
import shutil
import sys
import tempfile
import pytest
from onionshare import common
@pytest.fixture
def temp_dir_1024():
""" Create a temporary directory that has a single file of a