X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/f8e5f031c04122d65d1066077be3920ae95518ae..e31846b5146f144013121af2112f1ce62c226bc8:/tests/utils.py?ds=sidebyside diff --git a/tests/utils.py b/tests/utils.py index bea2038..7da206c 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,6 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Librarian, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from os.path import realpath, join, dirname import glob -import os def get_fixture_dir(dir_name): @@ -16,10 +20,3 @@ def get_fixture(dir_name, file_name): def get_all_fixtures(dir_name, glob_pattern='*'): """Returns list of paths for fixtures in directory dir_name matching the glob_pattern.""" return [get_fixture(dir_name, file_name) for file_name in glob.glob(join(get_fixture_dir(dir_name), glob_pattern))] - - -def remove_output_file(dir_name, file_name): - try: - os.remove(get_fixture(dir_name, file_name)) - except: - pass