Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Snippet for "Why Refactoring? How to Refactor/Restructure Python Package?"
Simple backward compatibility test case
class ConfigHelperCompatibilityTestCase(unittest.TestCase):
def test_backward_compatibility(self):
from .config import CONFIG_NAME, LOGGING_LEVEL
from .config import get_logging_level
from .config import ConfigHelper
except ImportError as e:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment