Skip to content

test: Fix for import errors on plugins when executing isolated tests #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package/test/plugins/VersionedPlugin10.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
This is certainly the second simplest plugin ever.
"""

from test_settings import TEST_MESSAGE
import logging
TEST_MESSAGE = logging.debug
from yapsy.IPlugin import IPlugin

class VersionedPlugin10(IPlugin):
Expand Down
3 changes: 2 additions & 1 deletion package/test/plugins/VersionedPlugin11.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
This is certainly the second simplest plugin ever.
"""

from test_settings import TEST_MESSAGE
import logging
TEST_MESSAGE = logging.debug
from yapsy.IPlugin import IPlugin

class VersionedPlugin11(IPlugin):
Expand Down
3 changes: 2 additions & 1 deletion package/test/plugins/VersionedPlugin111.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
This is certainly the second simplest plugin ever.
"""

from test_settings import TEST_MESSAGE
import logging
TEST_MESSAGE = logging.debug
from yapsy.IPlugin import IPlugin

class VersionedPlugin111(IPlugin):
Expand Down
3 changes: 2 additions & 1 deletion package/test/plugins/VersionedPlugin12.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
This is certainly the second simplest plugin ever.
"""

from test_settings import TEST_MESSAGE
import logging
TEST_MESSAGE = logging.debug
from yapsy.IPlugin import IPlugin

class VersionedPlugin12(IPlugin):
Expand Down
3 changes: 2 additions & 1 deletion package/test/plugins/VersionedPlugin12a1.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
This is certainly the second simplest plugin ever.
"""

from test_settings import TEST_MESSAGE
import logging
TEST_MESSAGE = logging.debug
from yapsy.IPlugin import IPlugin

class VersionedPlugin12a1(IPlugin):
Expand Down
1 change: 0 additions & 1 deletion package/test/test_PluginInfo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t; python-indent: 4 -*-

import test_settings
from configparser import ConfigParser
import unittest

Expand Down
1 change: 0 additions & 1 deletion package/test/test_VersionedPlugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t; python-indent: 4 -*-

from . import test_settings
from .test_settings import TEST_MESSAGE
import unittest
import os
Expand Down