mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-05 21:39:29 -04:00
Make tests look in the source code tree for resources
This commit is contained in:
parent
094041a4b6
commit
6a18a211e2
1 changed files with 4 additions and 2 deletions
|
@ -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 os
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from onionshare import common
|
from onionshare import common
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def temp_dir_1024():
|
def temp_dir_1024():
|
||||||
""" Create a temporary directory that has a single file of a
|
""" Create a temporary directory that has a single file of a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue