Remove doctest run code

This commit is contained in:
Eric Torres 2019-04-10 18:00:47 -07:00
parent ec7da672f0
commit 666449156c
4 changed files with 2 additions and 25 deletions

View File

@ -128,10 +128,3 @@ class Hierarchy(PathLike):
json.dump(attr, mfile)
tmpfile.rename(self.metadata_path)
# ========== Functions ==========
if __name__ == "__main__":
import doctest
doctest.testmod()

View File

@ -7,13 +7,8 @@ from pathlib import Path
from rbackup.struct.hierarchy import Hierarchy
# ========== Constants ==========
TESTING_MODULE = "rbackup.struct.struct"
# ========== Functions ==========
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(TESTING_MODULE))
return tests
TESTING_PACKAGE = "rbackup.struct"
TESTING_MODULE = f"{TESTING_PACKAGE}.hierarchy"
# ========== Tests ==========

View File

@ -25,12 +25,6 @@ from unittest.mock import patch
TESTING_MODULE = "rbackup.package_managers.packagemanager"
# ========== Functions ==========
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(TESTING_MODULE))
return tests
# ========== Test Cases ==========
class TestCreatePackageManager(unittest.TestCase):
def setUp(self):

View File

@ -12,10 +12,5 @@ from rbackup.struct.snapshot import Snapshot
TESTING_MODULE = "rbackup.struct.snapshot"
# ========== Functions ==========
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(TESTING_MODULE))
return tests
# ========== Unit Tests ==========