File tree Expand file tree Collapse file tree 7 files changed +83
-0
lines changed Expand file tree Collapse file tree 7 files changed +83
-0
lines changed Original file line number Diff line number Diff line change
1
+ results
2
+ .python-version
3
+ .vscode
4
+ .pytest_cache
5
+ * .pyc
Original file line number Diff line number Diff line change
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""" )
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ [tool:pytest]
2
+ python_files = tests.py test_*.py *_tests.py
3
+ addopts = -s --alluredir =results
You can’t perform that action at this time.
0 commit comments