databay.misc.inlet_tester

Contents:

for_each_inlet

Runs the test for each inlet returned from InletTester.get_inlet

InletTester

Utility class used for testing concrete implementations of Inlet.

databay.misc.inlet_tester.for_each_inlet(fn)[source]

Runs the test for each inlet returned from InletTester.get_inlet

class databay.misc.inlet_tester.InletTester(methodName='runTest')[source]

databay.misc.inlet_tester.InletTester

Utility class used for testing concrete implementations of Inlet.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Bases: unittest.TestCase

get_inlet(self)[source]

Implement this method to return instances of your inlet class.

setUp(self)[source]

Hook method for setting up the test fixture before exercising it.

test_new_record(self)[source]

for_each_inlet

Test creating new records and passing local metadata.

test_new_record_override_global(self)[source]

for_each_inlet

Test creating new records and overriding global metadata.

test_dont_read_metadata(self, update)[source]

for_each_inlet

Test creating new records and overriding global metadata.

test_pull(self, update)[source]

for_each_inlet

Test pulling data from the inlet.