diff --git a/dependabot_file.py b/dependabot_file.py index 3585735..c6c800b 100644 --- a/dependabot_file.py +++ b/dependabot_file.py @@ -17,14 +17,14 @@ def make_dependabot_config(ecosystem, group_dependencies) -> str: dependabot_config = f""" - package-ecosystem: '{ecosystem}' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ if group_dependencies: dependabot_config += """ groups: - production-dependencies: - dependency-type: 'production' - development-dependencies: - dependency-type: 'development' + production-dependencies: + dependency-type: 'production' + development-dependencies: + dependency-type: 'development' """ return dependabot_config diff --git a/test_dependabot_file.py b/test_dependabot_file.py index 7bb6bb8..e90d124 100644 --- a/test_dependabot_file.py +++ b/test_dependabot_file.py @@ -35,7 +35,7 @@ def test_build_dependabot_file_with_bundler(self): - package-ecosystem: 'bundler' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ result = build_dependabot_file(repo, False, []) self.assertEqual(result, expected_result) @@ -53,7 +53,7 @@ def test_build_dependabot_file_with_npm(self): - package-ecosystem: 'npm' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ result = build_dependabot_file(repo, False, []) self.assertEqual(result, expected_result) @@ -77,7 +77,7 @@ def test_build_dependabot_file_with_pip(self): - package-ecosystem: 'pip' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ result = build_dependabot_file(repo, False, []) self.assertEqual(result, expected_result) @@ -98,7 +98,7 @@ def test_build_dependabot_file_with_cargo(self): - package-ecosystem: 'cargo' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ result = build_dependabot_file(repo, False, []) self.assertEqual(result, expected_result) @@ -114,7 +114,7 @@ def test_build_dependabot_file_with_gomod(self): - package-ecosystem: 'gomod' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ result = build_dependabot_file(repo, False, []) self.assertEqual(result, expected_result) @@ -135,7 +135,7 @@ def test_build_dependabot_file_with_composer(self): - package-ecosystem: 'composer' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ result = build_dependabot_file(repo, False, []) self.assertEqual(result, expected_result) @@ -156,7 +156,7 @@ def test_build_dependabot_file_with_hex(self): - package-ecosystem: 'mix' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ result = build_dependabot_file(repo, False, []) self.assertEqual(result, expected_result) @@ -172,7 +172,7 @@ def test_build_dependabot_file_with_nuget(self): - package-ecosystem: 'nuget' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ result = build_dependabot_file(repo, False, []) self.assertEqual(result, expected_result) @@ -188,7 +188,7 @@ def test_build_dependabot_file_with_docker(self): - package-ecosystem: 'docker' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' """ result = build_dependabot_file(repo, False, []) self.assertEqual(result, expected_result) @@ -204,12 +204,12 @@ def test_build_dependabot_file_with_groups(self): - package-ecosystem: 'docker' directory: '/' schedule: - interval: 'weekly' + interval: 'weekly' groups: - production-dependencies: - dependency-type: 'production' - development-dependencies: - dependency-type: 'development' + production-dependencies: + dependency-type: 'production' + development-dependencies: + dependency-type: 'development' """ result = build_dependabot_file(repo, True, []) self.assertEqual(result, expected_result)