Skip to content

Commit b26031b

Browse files
author
Matt Bernier
authored
Updated for misnaming and OR statements
The misnames are on me, the OR statements look like they were left off - it's fixed :)
1 parent 931cdbc commit b26031b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_project.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ class ProjectTests(unittest.TestCase):
99

1010
# ./Docker or docker/Docker
1111
def test_docker_dir(self):
12-
self.assertEqual(True, os.path.isdir("./Docker"))
12+
self.assertEqual(True, os.path.isdir("./Dockerfile") || os.path.isdir("./docker/Dockerfile"))
1313

1414
# ./docker-compose.yml or ./docker/docker-compose.yml
1515
def test_docker_compose(self):
16-
self.assertEqual(True, os.path.isfile('docker-compose.yml'))
16+
self.assertEqual(True, os.path.isfile('./docker-compose.yml') || os.path.isfile('./docker/docker-compose.yml'))
1717

1818
# ./.env_sample
1919
def test_env(self):
@@ -49,7 +49,7 @@ def test_issue_template(self):
4949

5050
# ./LICENSE.md
5151
def test_license(self):
52-
self.assertEqual(True, os.path.isfile('./LICENSE.md'))
52+
self.assertEqual(True, os.path.isfile('./LICENSE.md') || os.path.isfile('./LICENSE.txt'))
5353

5454
# ./.github/PULL_REQUEST_TEMPLATE
5555
def test_pr_template(self):
@@ -72,4 +72,4 @@ def test_use_cases(self):
7272
self.assertEqual(True, os.path.isfile('./USE_CASES.md'))
7373

7474
if __name__ == '__main__':
75-
unittest.main()
75+
unittest.main()

0 commit comments

Comments
 (0)