Relocate unit tests

This commit is contained in:
Paul Pfeister 2024-05-15 23:53:37 -04:00
parent fba6432f40
commit de8ebb1577
5 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ Sherlock. This invocation hides the progress text that Sherlock normally
outputs, and instead shows the verbose output of the tests.
```console
$ cd sherlock/sherlock
# Assumes pwd is respository root
$ python3 -m unittest tests.all --verbose
```

View file

@ -5,7 +5,7 @@ This module contains various utilities for running tests.
import os
import os.path
import unittest
import sherlock
from sherlock import sherlock
from sherlock.result import QueryStatus
from sherlock.notify import QueryNotify
from sherlock.sites import SitesInformation
@ -30,7 +30,7 @@ class SherlockBaseTest(unittest.TestCase):
warnings.simplefilter("ignore", ResourceWarning)
# Create object with all information about sites we are aware of.
sites = SitesInformation(data_file_path=os.path.join(os.path.dirname(__file__), "../resources/data.json"))
sites = SitesInformation(data_file_path=os.path.join(os.path.dirname(__file__), "../sherlock/resources/data.json"))
# Create original dictionary from SitesInformation() object.
# Eventually, the rest of the code will be updated to use the new object

View file

@ -1,7 +1,7 @@
import unittest
import sys
sys.path.append('../')
import sherlock as sh
from sherlock import sherlock as sh
checksymbols = []
checksymbols = ["_", "-", "."]