Skip to content

Commit

Permalink
Renamed settings.json to config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
moleculekayak committed Jul 31, 2024
1 parent 7609b73 commit e39aad0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker_start
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

if [ ! -f /config/settings.json ]; then
cp /app/src/settings.json /config/settings.json
if [ ! -f /config/config.json ]; then
cp /app/src/config.json /config/config.json
fi

$@
2 changes: 1 addition & 1 deletion src/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def parse_args(args=None):
"--config-file",
type=str,
help="path to a configuration file",
default="src/settings.json",
default="src/config.json",
)

parsed = parser.parse_args(args)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_parses_args(self):

assert args.input_directory == "foo"
assert args.output_directory == "bar"
assert args.config_file == "src/settings.json"
assert args.config_file == "src/config.json"

def test_sets_input_directory(self, capsys):
args = parse_args(["-i", "foo", "-o", "bar"])
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class TestConfig(SetupTeardown):
def test_loads_config(self):
config = Config().load("tests/support/settings.json")
config = Config().load("tests/support/config.json")

assert config.red_key == "red_key"
assert config.ops_key == "ops_key"
Expand Down

0 comments on commit e39aad0

Please sign in to comment.