mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-02-12 06:08:26 +00:00
Minor formatting
This commit is contained in:
parent
d8bea87a2f
commit
58d2af30a0
@ -24,7 +24,7 @@ class ConfigTests(unittest.TestCase):
|
||||
tutor_config.merge(config, defaults)
|
||||
|
||||
self.assertEqual("abcd", config["MYSQL_ROOT_PASSWORD"])
|
||||
|
||||
|
||||
@unittest.mock.patch.object(tutor_config.fmt, "echo")
|
||||
def test_save_twice(self, mock_echo):
|
||||
with tempfile.TemporaryDirectory() as root:
|
||||
|
@ -8,7 +8,6 @@ from tutor import exceptions
|
||||
|
||||
|
||||
class EnvTests(unittest.TestCase):
|
||||
|
||||
def test_walk_templates(self):
|
||||
templates = list(env.walk_templates("local"))
|
||||
self.assertIn("local/docker-compose.yml", templates)
|
||||
|
@ -326,7 +326,9 @@ def ask(question, key, config, defaults):
|
||||
|
||||
def ask_bool(question, key, config, defaults):
|
||||
default = config.get(key, defaults[key])
|
||||
config[key] = click.confirm(fmt.question(question), prompt_suffix=" ", default=default)
|
||||
config[key] = click.confirm(
|
||||
fmt.question(question), prompt_suffix=" ", default=default
|
||||
)
|
||||
|
||||
|
||||
def ask_choice(question, key, config, defaults, choices):
|
||||
|
Loading…
x
Reference in New Issue
Block a user