Skip to content

Commit

Permalink
Relocate unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed May 16, 2024
1 parent fba6432 commit de8ebb1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions sherlock/tests/base.py → tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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
Expand All @@ -30,7 +30,7 @@ def setUp(self):
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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
import sys
sys.path.append('../')
import sherlock as sh
from sherlock import sherlock as sh

checksymbols = []
checksymbols = ["_", "-", "."]
Expand Down

0 comments on commit de8ebb1

Please sign in to comment.