environment.py 326 Bytes
Newer Older
1
from oas_behave.environment import *
2
3
4
5
6
7
8
9
10
11
12


def before_tag(context, tag):
    """Define steps run before each tag."""

    userdata = context.config.userdata
    if tag == 'grafana':
        context.grafana = get_values(userdata, 'grafana')

    if tag == 'nextcloud':
        context.nextcloud = get_values(userdata, 'nextcloud')