Skip to content

Commit

Permalink
Fix for import errors on plugins
Browse files Browse the repository at this point in the history
* import test_settings for fails in certain pytest invocation when running locally
* replace TEST_MESSAGE with logging.debug as per the implementation in test_settings
  • Loading branch information
AmeyaVS committed Mar 30, 2024
1 parent 6b487b0 commit ce9f7a9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package/test/plugins/VersionedPlugin10.py
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
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
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
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
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
2 changes: 1 addition & 1 deletion package/test/test_PluginInfo.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t; python-indent: 4 -*-

import test_settings
from . import test_settings
from configparser import ConfigParser
import unittest

Expand Down

0 comments on commit ce9f7a9

Please sign in to comment.