File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
Release Notes
2
2
-------------
3
3
4
+ **1.3.0 (2017-02-27) **
5
+
6
+ * Add base URL to metadata provided by `pytest-metadata
7
+ <https://pypi.python.org/pypi/pytest-metadata/> `_.
8
+
4
9
**1.2.0 (2016-11-17) **
5
10
6
11
* Added support for specifying the base URL by environment variable
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ def base_url(request):
14
14
config = request .config
15
15
base_url = config .getoption ('base_url' )
16
16
if base_url is not None :
17
- if hasattr (config , '_environment' ):
18
- config ._environment .append (('Base URL' , base_url ))
19
17
return base_url
20
18
21
19
@@ -38,6 +36,8 @@ def pytest_configure(config):
38
36
base_url = config .getoption ('base_url' ) or config .getini ('base_url' )
39
37
if base_url is not None :
40
38
config .option .base_url = base_url
39
+ if hasattr (config , '_metadata' ):
40
+ config ._metadata ['Base URL' ] = base_url
41
41
42
42
43
43
def pytest_report_header (config , startdir ):
You can’t perform that action at this time.
0 commit comments