Device Detection services for 51Degrees Pipeline

tests.test_cloudexamples.DeviceDetectionExampleTests Class Reference

Inheritance diagram for tests.test_cloudexamples.DeviceDetectionExampleTests:

[legend]

Collaboration diagram for tests.test_cloudexamples.DeviceDetectionExampleTests:

[legend]

Public Member Functions

 setUp (self)
 run_example (self, example)
 Run an example, collecting everything it writes through its output callback, and fail if any of it reads as a programming fault.
 assert_device_lines_are_meaningful (self, output)
 Every device line the TAC and native model examples print must say something useful.
 test_cloud_getting_started_console (self)
 test_cloud_nativemodellookup_console (self)
 test_cloud_taclookup_console (self)
 test_cloud_metadata_console (self)
 test_cloud_configurator_console (self)
 test_cloud_failuretomatch (self)
 The failure to match example is a script rather than a class, so it is run as one, with the resource key in its environment.

Public Attributes

 resource_key = find_resource_key()
 logger = Logger()

Member Function Documentation

◆ assert_device_lines_are_meaningful()

tests.test_cloudexamples.DeviceDetectionExampleTests.assert_device_lines_are_meaningful ( self,
output )

Every device line the TAC and native model examples print must say something useful.

Either it names a device, or it says the property has no value and gives the reason the cloud service supplied.

◆ run_example()

tests.test_cloudexamples.DeviceDetectionExampleTests.run_example ( self,
example )

Run an example, collecting everything it writes through its output callback, and fail if any of it reads as a programming fault.

◆ setUp()

tests.test_cloudexamples.DeviceDetectionExampleTests.setUp ( self)

◆ test_cloud_configurator_console()

tests.test_cloudexamples.DeviceDetectionExampleTests.test_cloud_configurator_console ( self)

◆ test_cloud_failuretomatch()

tests.test_cloudexamples.DeviceDetectionExampleTests.test_cloud_failuretomatch ( self)

The failure to match example is a script rather than a class, so it is run as one, with the resource key in its environment.

◆ test_cloud_getting_started_console()

tests.test_cloudexamples.DeviceDetectionExampleTests.test_cloud_getting_started_console ( self)

◆ test_cloud_metadata_console()

tests.test_cloudexamples.DeviceDetectionExampleTests.test_cloud_metadata_console ( self)

◆ test_cloud_nativemodellookup_console()

tests.test_cloudexamples.DeviceDetectionExampleTests.test_cloud_nativemodellookup_console ( self)

◆ test_cloud_taclookup_console()

tests.test_cloudexamples.DeviceDetectionExampleTests.test_cloud_taclookup_console ( self)

Member Data Documentation

◆ logger

tests.test_cloudexamples.DeviceDetectionExampleTests.logger = Logger()

◆ resource_key

tests.test_cloudexamples.DeviceDetectionExampleTests.resource_key = find_resource_key()