Skip to content

Commit

Permalink
Implement Unit Tests
Browse files Browse the repository at this point in the history
- Resolves import errors.

See Issue: MikeMeliz#16
  • Loading branch information
the-siegfried committed Jul 3, 2022
1 parent 1843c64 commit ba33d8e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions modules/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from modules import checker
from modules import crawler
from modules import extractor
6 changes: 3 additions & 3 deletions modules/tests/test_checker.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os.path
import unittest

from ..checker import extract_domain
from ..checker import folder
from ..checker import url_canon
from modules.checker import extract_domain
from modules.checker import folder
from modules.checker import url_canon


class TestCheckFunctions(unittest.TestCase):
Expand Down
8 changes: 4 additions & 4 deletions modules/tests/test_crawler.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import shutil
import unittest

from ..crawler import Crawler
from ..checker import url_canon
from ..checker import extract_domain
from ..checker import folder
from modules.crawler import Crawler
from modules.checker import url_canon
from modules.checker import extract_domain
from modules.checker import folder


class TestCrawlerFunctions(unittest.TestCase):
Expand Down

0 comments on commit ba33d8e

Please sign in to comment.