1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-18 20:10:26 +01:00

Added test for base wrapper class

Moved most tests from cd32 module to base one. Added missing tests for
cd32 module.
This commit is contained in:
2017-01-01 18:33:31 +01:00
parent fa7afcb73b
commit 989c268b56
4 changed files with 283 additions and 142 deletions

View File

@@ -177,7 +177,7 @@ class Base(object):
return None
save_path = os.path.join(self.dir, save)
if not os.path.exists(save_path):
if not os.path.exists(save_path) or not os.path.isdir(save_path):
return None
return save_path
@@ -188,3 +188,4 @@ class Base(object):
sys.stderr.write("Configuration lacks of required "
"`wrapper' option.\n")
return False
return True

View File

@@ -54,11 +54,6 @@ class CD32(base.Base):
def _validate_options(self):
validation_result = super(CD32, self)._validate_options()
validation_result = True
if not super(CD32, self)._validate_options():
validation_result = False
if 'wrapper_archive' not in self.all_options:
sys.stderr.write("Configuration lacks of required "
"`wrapper_archive' option.\n")