Device Detection services for 51Degrees Pipeline

tests.test_examples_without_settings Namespace Reference

Classes

class  ExamplesWithoutSettingsTests

Functions

 run_without_settings (main, argv=None)
 Runs an example's main with the settings taken out of the environment, and returns what it printed.
 first_records (path, count)
 The first records of a YAML evidence file.

Variables

list SETTINGS = ["_51DEGREES_LICENSE_KEY", "license_key", "LICENSE_KEY"]
int OFFLINE_RECORDS = 20

Function Documentation

◆ first_records()

first_records ( path,
count )

The first records of a YAML evidence file.

◆ run_without_settings()

run_without_settings ( main,
argv = None )

Runs an example's main with the settings taken out of the environment, and returns what it printed.

Variable Documentation

◆ OFFLINE_RECORDS

int tests.test_examples_without_settings.OFFLINE_RECORDS = 20

◆ SETTINGS

list tests.test_examples_without_settings.SETTINGS = ["_51DEGREES_LICENSE_KEY", "license_key", "LICENSE_KEY"]