Remove doctest run code
This commit is contained in:
parent
ec7da672f0
commit
666449156c
@ -128,10 +128,3 @@ class Hierarchy(PathLike):
|
||||
json.dump(attr, mfile)
|
||||
|
||||
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
|
||||
|
||||
# ========== 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 ==========
|
||||
|
@ -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):
|
||||
|
@ -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 ==========
|
||||
|
Loading…
x
Reference in New Issue
Block a user