updated import path in tests

This commit is contained in:
Kevin Froman 2019-11-21 03:26:23 -06:00
parent 54a35a452a
commit a4a0d240ac
19 changed files with 19 additions and 19 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid, hashlib
import onionrblocks

View File

@ -1,7 +1,7 @@
from unittest.mock import patch
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
print("Test directory:", TEST_DIR)

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid, sqlite3
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
print("Test directory:", TEST_DIR)

View File

@ -1,6 +1,6 @@
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid, json
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
print("Test directory:", TEST_DIR)

View File

@ -1,6 +1,6 @@
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
print("Test directory:", TEST_DIR)

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os, random
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
TEST_DIR_1 = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
TEST_DIR_2 = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid, hashlib, base64
import nacl.exceptions
import nacl.signing, nacl.hash, nacl.encoding

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
from utils import identifyhome

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
import json
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'

View File

@ -1,6 +1,6 @@
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
import base64

View File

@ -1,6 +1,6 @@
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
print("Test directory:", TEST_DIR)

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
print("Test directory:", TEST_DIR)

View File

@ -1,6 +1,6 @@
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest
import vanityonionr

View File

@ -1,6 +1,6 @@
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
import unittest, uuid, time, threading
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import unittest, sys
sys.path.append(".")
sys.path.append("onionr/")
sys.path.append("src/")
from utils import reconstructhash