Also some corrections for tests to make it work on different machines.

packages
Иванов Денис 4 years ago
parent a37a6b1cde
commit 6e865e1b43

@ -576,6 +576,7 @@ class TestTemplateExecutor:
def test_if_the_remove_directory_method_s_input_is_a_path_to_an_existing_empty_directory__the_method_will_remove_the_directory(self):
target_path = join_paths(CHROOT_PATH,
'/etc/remove_dir_testfiles/dir_0')
os.remove(os.path.join(target_path, 'file'))
template_executor._remove_directory(target_path)
assert not os.path.exists(target_path)
@ -1079,6 +1080,7 @@ class TestTemplateExecutor:
target_path = join_paths(
CHROOT_PATH,
'/etc/append_replace_dir_testfiles/dir_2')
os.remove(os.path.join(target_path, 'file'))
parameters_object = ParametersContainer({'package': test_package_name,
'append': 'replace'})
template_wrapper = TemplateWrapper(

Loading…
Cancel
Save