コード例 #1
0
def before_scenario(context, scenario):
    context.app_path = "./main.py"
    context.app_process = None
    context.poll_rate = 10
    context.dev_null = None
    context.fake_ci_servers = []
    helpers.rebuild_config_file(context)
コード例 #2
0
ファイル: environment.py プロジェクト: mlemley/ci_screen_2
def before_scenario(context, scenario):
    context.app_path = "./main.py"
    context.app_process = None
    context.poll_rate = 10
    context.dev_null = None
    context.fake_ci_servers = []
    helpers.rebuild_config_file(context)
コード例 #3
0
def i_have_a_ci_server_with_projects(context):
    port = helpers.get_port()
    ci_server = ci.FakeCIServer(port=port)
    ci_server.start()
    for row in context.table:
        ci_server.projects.append(row)
    context.fake_ci_servers.append(ci_server)

    helpers.rebuild_config_file(context)
コード例 #4
0
def i_have_a_ci_server_with_projects(context):
    port = helpers.get_port()
    ci_server = ci.FakeCIServer(port=port)
    ci_server.start()
    for row in context.table:
        ci_server.projects.append(row)
    context.fake_ci_servers.append(ci_server)

    helpers.rebuild_config_file(context)
コード例 #5
0
ファイル: environment.py プロジェクト: garyjohnson/ci_screen
def before_scenario(context, scenario):
    context.app_path = "./main.py"
    context.app_process = None
    context.poll_rate = 10
    context.dev_null = None
    context.fake_ci_servers = []
    context.holiday = False
    context.mqtt_enabled = False
    context.mqtt_now_playing_topic = ''
    context.mqtt_online_topic = ''
    context.mqtt_marquee_topic = ''
    helpers.rebuild_config_file(context)
コード例 #6
0
def before_scenario(context, scenario):
    context.app_path = "./main.py"
    context.app_process = None
    context.poll_rate = 10
    context.dev_null = None
    context.fake_ci_servers = []
    context.holiday = False
    context.mqtt_enabled = False
    context.mqtt_now_playing_topic = ''
    context.mqtt_online_topic = ''
    context.mqtt_marquee_topic = ''
    helpers.rebuild_config_file(context)
コード例 #7
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def marquee_topic_is_set_to(context, topic):
    context.mqtt_marquee_topic = topic
    helpers.rebuild_config_file(context)
コード例 #8
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def online_topic_is_set_to(context, topic):
    context.mqtt_online_topic = topic
    helpers.rebuild_config_file(context)
コード例 #9
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def now_playing_topic_is_set_to(context, topic):
    context.mqtt_now_playing_topic = topic
    helpers.rebuild_config_file(context)
コード例 #10
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def i_do_not_have_mqtt_enabled(context):
    context.mqtt_enabled = False
    helpers.rebuild_config_file(context)
コード例 #11
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def i_have_mqtt_enabled(context):
    context.mqtt_enabled = True
    helpers.rebuild_config_file(context)
コード例 #12
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def i_do_not_have_mqtt_enabled(context):
    context.mqtt_enabled = False
    helpers.rebuild_config_file(context)
コード例 #13
0
def i_have_holiday_effects_enabled(context):
    context.holiday = True
    helpers.rebuild_config_file(context)
コード例 #14
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def marquee_topic_is_set_to(context, topic):
    context.mqtt_marquee_topic = topic
    helpers.rebuild_config_file(context)
コード例 #15
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def online_topic_is_set_to(context, topic):
    context.mqtt_online_topic = topic
    helpers.rebuild_config_file(context)
コード例 #16
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def now_playing_topic_is_set_to(context, topic):
    context.mqtt_now_playing_topic = topic
    helpers.rebuild_config_file(context)
コード例 #17
0
def my_poll_rate_is_seconds(context, seconds):
    context.poll_rate = int(seconds)
    helpers.rebuild_config_file(context)
コード例 #18
0
def i_have_holiday_effects_enabled(context):
    context.holiday = True
    helpers.rebuild_config_file(context)
コード例 #19
0
def my_poll_rate_is_seconds(context, seconds):
    context.poll_rate = int(seconds)
    helpers.rebuild_config_file(context)
コード例 #20
0
ファイル: mqtt_steps.py プロジェクト: garyjohnson/ci_screen
def i_have_mqtt_enabled(context):
    context.mqtt_enabled = True
    helpers.rebuild_config_file(context)