Remove doctest run code
This commit is contained in:
parent
ec7da672f0
commit
666449156c
@ -128,10 +128,3 @@ class Hierarchy(PathLike):
|
|||||||
json.dump(attr, mfile)
|
json.dump(attr, mfile)
|
||||||
|
|
||||||
tmpfile.rename(self.metadata_path)
|
tmpfile.rename(self.metadata_path)
|
||||||
|
|
||||||
|
|
||||||
# ========== Functions ==========
|
|
||||||
if __name__ == "__main__":
|
|
||||||
import doctest
|
|
||||||
|
|
||||||
doctest.testmod()
|
|
||||||
|
@ -7,13 +7,8 @@ from pathlib import Path
|
|||||||
from rbackup.struct.hierarchy import Hierarchy
|
from rbackup.struct.hierarchy import Hierarchy
|
||||||
|
|
||||||
# ========== Constants ==========
|
# ========== Constants ==========
|
||||||
TESTING_MODULE = "rbackup.struct.struct"
|
TESTING_PACKAGE = "rbackup.struct"
|
||||||
|
TESTING_MODULE = f"{TESTING_PACKAGE}.hierarchy"
|
||||||
|
|
||||||
# ========== Functions ==========
|
|
||||||
def load_tests(loader, tests, ignore):
|
|
||||||
tests.addTests(doctest.DocTestSuite(TESTING_MODULE))
|
|
||||||
return tests
|
|
||||||
|
|
||||||
|
|
||||||
# ========== Tests ==========
|
# ========== Tests ==========
|
||||||
|
@ -25,12 +25,6 @@ from unittest.mock import patch
|
|||||||
TESTING_MODULE = "rbackup.package_managers.packagemanager"
|
TESTING_MODULE = "rbackup.package_managers.packagemanager"
|
||||||
|
|
||||||
|
|
||||||
# ========== Functions ==========
|
|
||||||
def load_tests(loader, tests, ignore):
|
|
||||||
tests.addTests(doctest.DocTestSuite(TESTING_MODULE))
|
|
||||||
return tests
|
|
||||||
|
|
||||||
|
|
||||||
# ========== Test Cases ==========
|
# ========== Test Cases ==========
|
||||||
class TestCreatePackageManager(unittest.TestCase):
|
class TestCreatePackageManager(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
@ -12,10 +12,5 @@ from rbackup.struct.snapshot import Snapshot
|
|||||||
TESTING_MODULE = "rbackup.struct.snapshot"
|
TESTING_MODULE = "rbackup.struct.snapshot"
|
||||||
|
|
||||||
|
|
||||||
# ========== Functions ==========
|
|
||||||
def load_tests(loader, tests, ignore):
|
|
||||||
tests.addTests(doctest.DocTestSuite(TESTING_MODULE))
|
|
||||||
return tests
|
|
||||||
|
|
||||||
|
|
||||||
# ========== Unit Tests ==========
|
# ========== Unit Tests ==========
|
||||||
|
Loading…
x
Reference in New Issue
Block a user