Skip to content

Commit abe1bdd

Browse files
feat: create initial basic project structure
0 parents  commit abe1bdd

File tree

7 files changed

+83
-0
lines changed

7 files changed

+83
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
results
2+
.python-version
3+
.vscode
4+
.pytest_cache
5+
*.pyc

README.md

Whitespace-only changes.

api_helpers/posts.py

Whitespace-only changes.

config.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from environs import Env
2+
3+
env = Env()
4+
env.read_env()
5+
6+
environments = {
7+
"local": {
8+
"host_url": "https://jsonplaceholder.typicode.com/",
9+
},
10+
"development": {
11+
"host_url": "https://jsonplaceholder.typicode.com/",
12+
},
13+
"staging": {
14+
"host_url": "https://jsonplaceholder.typicode.com/",
15+
},
16+
"production": {
17+
"host_url": "https://jsonplaceholder.typicode.com/",
18+
},
19+
}
20+
21+
22+
def get_environment():
23+
app_env = environments.get(env("app_env", "local"))
24+
print(f"""Tests will be run against {app_env} environment""")

e2e_tests/post_crud_tests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import pytest
2+
import allure
3+
4+
5+
@allure.description("User should be able to create and delete a post")
6+
def test_create_and_delete_posts():
7+
pass

requirements.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
allure-pytest==2.8.18
2+
allure-python-commons==2.8.18
3+
appdirs==1.4.4
4+
attrs==20.2.0
5+
black==20.8b1
6+
certifi==2020.6.20
7+
chardet==3.0.4
8+
click==7.1.2
9+
ConfigArgParse==1.2.3
10+
environs==8.0.0
11+
Flask==1.1.2
12+
Flask-BasicAuth==0.2.0
13+
gevent==20.6.2
14+
geventhttpclient==1.4.4
15+
greenlet==0.4.16
16+
idna==2.10
17+
iniconfig==1.0.1
18+
itsdangerous==1.1.0
19+
Jinja2==2.11.2
20+
locust==1.2.3
21+
MarkupSafe==1.1.1
22+
marshmallow==3.7.1
23+
more-itertools==8.5.0
24+
msgpack==1.0.0
25+
mypy-extensions==0.4.3
26+
packaging==20.4
27+
pathspec==0.8.0
28+
pluggy==0.13.1
29+
psutil==5.7.2
30+
py==1.9.0
31+
pyparsing==2.4.7
32+
pytest==6.0.1
33+
python-dotenv==0.14.0
34+
pyzmq==19.0.2
35+
regex==2020.7.14
36+
requests==2.24.0
37+
six==1.15.0
38+
toml==0.10.1
39+
typed-ast==1.4.1
40+
typing-extensions==3.7.4.3
41+
urllib3==1.25.10
42+
Werkzeug==1.0.1
43+
zope.event==4.4
44+
zope.interface==5.1.0

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool:pytest]
2+
python_files = tests.py test_*.py *_tests.py
3+
addopts = -s --alluredir=results

0 commit comments

Comments
 (0)