Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #13 from launchableinc/rename-default-config-file
Browse files Browse the repository at this point in the history
Rename the default config file name to `.launchable.d/config.yml`
  • Loading branch information
ninjinkun authored Jun 10, 2022
2 parents 9a8763a + fbdb855 commit c7eb66e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion launchable_cli_args/cli_args.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from pathlib import Path
import subprocess
from typing import Callable, Optional, Tuple, Union

Expand Down Expand Up @@ -71,7 +72,9 @@ def write_to(self, writer: YamlWriter):
writer.end_object()

def write_as_yaml(self, path: str):
with open(path, 'w') as s:
p = Path(path).resolve()
p.parents[0].mkdir(parents=True, exist_ok=True)
with p.open('w') as s:
self.write_to(YamlWriter(s))

# read value from dictionary and verify the content.
Expand Down
2 changes: 1 addition & 1 deletion launchable_config/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def main() -> int:
parser = argparse.ArgumentParser(
description='generate/verify launchable test runner configuration file')
parser.add_argument('--file', dest="file",
default="launchable.conf", help='configuration file name')
default=".launchable.d/config.yml", help='configuration file name')
parser.add_argument('--create', action="store_true",
help='create new configuration file by standard settings')
parser.add_argument('--verify', action="store_true",
Expand Down
2 changes: 1 addition & 1 deletion pytest_launchable/launchable_test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def pytest_addoption(parser):
action="store",
dest="launchable_conf_path",
metavar="",
default="launchable.conf",
default=".launchable.d/config.yml",
help="path of launchable test configuration file")


Expand Down

0 comments on commit c7eb66e

Please sign in to comment.