51Degrees Pipeline for Python

tests.test_web_client_side Namespace Reference

Detailed Description

The cache headers of the client-side JavaScript and JSON responses, as
the cache header detail of the web integration specification sets them.

Classes

class  Switchable
class  Listed
class  Unlisted
class  OnlyUserAgent
class  ClientSideCacheTests

Functions

 client ()
 script_etag ()

Variables

tuple CHROME
tuple SAFARI
str CACHEABLE = "max-age=1800, private"
str NOT_CACHEABLE = "private, no-cache"
 WEAK_ETAG = re.compile(r'W/"[0-9a-f]{32}"\Z')
 SESSION_ID = re.compile(r'var sessionId\s*=\s*"([^"]*)"')

Function Documentation

◆ client()

client ( )
A test client of an application serving the two client-side
endpoints.

◆ script_etag()

script_etag ( )
The ETag of the JavaScript for a fixed request. Run in a process of
its own by the test that compares processes.

Variable Documentation

◆ CACHEABLE

str tests.test_web_client_side.CACHEABLE = "max-age=1800, private"

◆ CHROME

tuple tests.test_web_client_side.CHROME
Initial value:
= ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36")

◆ NOT_CACHEABLE

str tests.test_web_client_side.NOT_CACHEABLE = "private, no-cache"

◆ SAFARI

tuple tests.test_web_client_side.SAFARI
Initial value:
= ("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) "
"AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 "
"Safari/605.1.15")

◆ SESSION_ID

tests.test_web_client_side.SESSION_ID = re.compile(r'var sessionId\s*=\s*"([^"]*)"')

◆ WEAK_ETAG

tests.test_web_client_side.WEAK_ETAG = re.compile(r'W/"[0-9a-f]{32}"\Z')