This repository was archived by the owner on Jul 30, 2024. It is now read-only.
forked from sendgrid/sendgrid-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_project.py
More file actions
79 lines (59 loc) · 2.13 KB
/
test_project.py
File metadata and controls
79 lines (59 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import os
try:
import unittest2 as unittest
except ImportError:
import unittest
class ProjectTests(unittest.TestCase):
# ./docker
def test_docker_dir(self):
self.assertTrue(os.path.isdir("./docker"))
# ./docker-test
def test_docker_test_dir(self):
self.assertTrue(os.path.isdir("./docker-test"))
# # ./docker-compose.yml or ./docker/docker-compose.yml
# def test_docker_compose(self):
# self.assertTrue(os.path.isfile('docker-compose.yml'))
# ./.env_sample
def test_env(self):
self.assertTrue(os.path.isfile('./.env_sample'))
# ./.gitignore
def test_gitignore(self):
self.assertTrue(os.path.isfile('./.gitignore'))
# ./.travis.yml
def test_travis(self):
self.assertTrue(os.path.isfile('./.travis.yml'))
# ./.codeclimate.yml
def test_codeclimate(self):
self.assertTrue(os.path.isfile('./.codeclimate.yml'))
# ./CHANGELOG.md
def test_changelog(self):
self.assertTrue(os.path.isfile('./CHANGELOG.md'))
# ./CODE_OF_CONDUCT.md
def test_code_of_conduct(self):
self.assertTrue(os.path.isfile('./CODE_OF_CONDUCT.md'))
# ./CONTRIBUTING.md
def test_contributing(self):
self.assertTrue(os.path.isfile('./CONTRIBUTING.md'))
# ./.github/ISSUE_TEMPLATE
def test_issue_template(self):
self.assertTrue(os.path.isfile('./.github/ISSUE_TEMPLATE'))
# ./LICENSE.md
def test_license(self):
self.assertTrue(os.path.isfile('./LICENSE.txt'))
# ./.github/PULL_REQUEST_TEMPLATE
def test_pr_template(self):
self.assertTrue(os.path.isfile('./.github/PULL_REQUEST_TEMPLATE'))
# ./README.md
def test_readme(self):
self.assertTrue(os.path.isfile('./README.md'))
# ./TROUBLESHOOTING.md
def test_troubleshooting(self):
self.assertTrue(os.path.isfile('./TROUBLESHOOTING.md'))
# ./USAGE.md
def test_usage(self):
self.assertTrue(os.path.isfile('./USAGE.md'))
# ./use-cases/README.md
def test_use_cases(self):
self.assertTrue(os.path.isfile('./use_cases/README.md'))
if __name__ == '__main__':
unittest.main()