def test_check_fit_mode(self, func, cmd, argv, config): from palladium.util import resolve_dotted_name with patch(func): cmd = resolve_dotted_name(cmd) assert config.initialized is False cmd(argv=argv) assert config.initialized is True assert config == {'__mode__': 'fit'}
def test_module(self, resolve_dotted_name): resolve_dotted_name('threading') is threading
def test_with_dots(self, resolve_dotted_name): dotted = 'palladium.tests.test_util.TestResolveDottedName' assert (resolve_dotted_name(dotted) is TestResolveDottedName)
def test_with_colon(self, resolve_dotted_name): dotted = 'palladium.tests.test_util:TestResolveDottedName.test_with_colon' assert (resolve_dotted_name(dotted) is TestResolveDottedName.test_with_colon)