aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_postprocessor.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@gmail.com>2020-05-03 00:06:41 -0400
committerLibravatarUnit 193 <unit193@gmail.com>2020-05-03 00:06:41 -0400
commitf5a2f273c0ccfac264ddfd45384dadfe25d9d7a5 (patch)
tree92f4a00290fc49d27badcde094910f7a5bb8f783 /test/test_postprocessor.py
parent6979a952d58bb018e3636276f141ae28c4599143 (diff)
parent90e50db2e3c38f523bb5195d295290b06e5cedb0 (diff)
Update upstream source from tag 'upstream/1.13.6'
Update to upstream version '1.13.6' with Debian dir 56019140fd27c135929da929f616e2bc3456deb9
Diffstat (limited to 'test/test_postprocessor.py')
-rw-r--r--test/test_postprocessor.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/test_postprocessor.py b/test/test_postprocessor.py
index 629b0d7..354f9ff 100644
--- a/test/test_postprocessor.py
+++ b/test/test_postprocessor.py
@@ -1,23 +1,24 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-# Copyright 2019 Mike Fährmann
+# Copyright 2019-2020 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import os
-import os.path
+import sys
+import unittest
+from unittest.mock import Mock, mock_open, patch
+
import zipfile
import tempfile
from datetime import datetime, timezone as tz
-import unittest
-from unittest.mock import Mock, mock_open, patch
-
-from gallery_dl import postprocessor, extractor, util, config
-from gallery_dl.postprocessor.common import PostProcessor
+sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from gallery_dl import postprocessor, extractor, util, config # noqa E402
+from gallery_dl.postprocessor.common import PostProcessor # noqa E402
class MockPostprocessorModule(Mock):