Device Detection services for 51Degrees Pipeline

live_cloud.py File Reference

Namespaces

namespace  tests
namespace  tests.live_cloud
 Where the tests that call the live 51Degrees cloud service find their resource key, and what they fail with when there is none or when the answer lacks what they asked for.

Functions

 tests.live_cloud._report_old_name (name, old_name)
 Prints, once for each old name, that it is deprecated and which name replaces it.
 tests.live_cloud.read_environment (name, old_name)
 The value of the environment variable name, or None when it has none.
 tests.live_cloud.is_set (name, old_name)
 Whether the environment variable name is set, whatever it holds, which is how a switch is read.
 tests.live_cloud.find_resource_key (names=RESOURCE_KEY_NAMES)
 The first resource key set under any of the names, or None.
 tests.live_cloud.no_resource_key (product, asks_for, several=False, names=RESOURCE_KEY_NAMES)
 What to fail with when no resource key is set.
 tests.live_cloud.answered_without (thing, reason, product)
 What to fail with when the cloud answered without the thing asked for.