51Degrees Pipeline for Python

tests.test_datafile_update_http.HttpDataFile Class Reference

Detailed Description

Stands in for a data file that is kept in memory and updated over
HTTP.

Inheritance diagram for tests.test_datafile_update_http.HttpDataFile:

[legend]

Public Member Functions

 __init__ (self, path=None)
 get_update_url (self)
 get_date_published (self)
 get_next_update (self)
 refresh (self)

Public Attributes

 flow_element = FakeEngine()
str identifier = "fake-data"
bool update_on_start = False
bool auto_update = False
bool file_system_watcher = False
bool updating = False
bool verify_if_modified_since = True
bool verify_md5 = False
bool decompress = False
bool download = False
bool create_temp_copy = False
int polling_interval = 30
int update_time_maximum_randomisation = 0
str data = b"old"
list refreshed = []
 published = datetime.datetime(2026, 11, 3, 10, 30, 0)
 next_update = datetime.datetime(2026, 11, 3, 10, 30, 0)
 refresh_error = None
 url = URL
 path = path

Constructor & Destructor Documentation

◆ __init__()

tests.test_datafile_update_http.HttpDataFile.__init__ ( self,
path = None )

Member Function Documentation

◆ get_date_published()

tests.test_datafile_update_http.HttpDataFile.get_date_published ( self)

◆ get_next_update()

tests.test_datafile_update_http.HttpDataFile.get_next_update ( self)

◆ get_update_url()

tests.test_datafile_update_http.HttpDataFile.get_update_url ( self)

◆ refresh()

tests.test_datafile_update_http.HttpDataFile.refresh ( self)

Member Data Documentation

◆ auto_update

bool tests.test_datafile_update_http.HttpDataFile.auto_update = False

◆ create_temp_copy

bool tests.test_datafile_update_http.HttpDataFile.create_temp_copy = False

◆ data

tests.test_datafile_update_http.HttpDataFile.data = b"old"

◆ decompress

bool tests.test_datafile_update_http.HttpDataFile.decompress = False

◆ download

bool tests.test_datafile_update_http.HttpDataFile.download = False

◆ file_system_watcher

bool tests.test_datafile_update_http.HttpDataFile.file_system_watcher = False

◆ flow_element

tests.test_datafile_update_http.HttpDataFile.flow_element = FakeEngine()

◆ identifier

str tests.test_datafile_update_http.HttpDataFile.identifier = "fake-data"

◆ next_update

tests.test_datafile_update_http.HttpDataFile.next_update = datetime.datetime(2026, 11, 3, 10, 30, 0)

◆ path

tests.test_datafile_update_http.HttpDataFile.path = path

◆ polling_interval

int tests.test_datafile_update_http.HttpDataFile.polling_interval = 30

◆ published

tests.test_datafile_update_http.HttpDataFile.published = datetime.datetime(2026, 11, 3, 10, 30, 0)

◆ refresh_error

tests.test_datafile_update_http.HttpDataFile.refresh_error = None

◆ refreshed

list tests.test_datafile_update_http.HttpDataFile.refreshed = []

◆ update_on_start

bool tests.test_datafile_update_http.HttpDataFile.update_on_start = False

◆ update_time_maximum_randomisation

int tests.test_datafile_update_http.HttpDataFile.update_time_maximum_randomisation = 0

◆ updating

bool tests.test_datafile_update_http.HttpDataFile.updating = False

◆ url

tests.test_datafile_update_http.HttpDataFile.url = URL

◆ verify_if_modified_since

bool tests.test_datafile_update_http.HttpDataFile.verify_if_modified_since = True

◆ verify_md5

bool tests.test_datafile_update_http.HttpDataFile.verify_md5 = False