l.b.b.t.t.TestBugTaskSearchListingView(BrowserTestCase) : class documentation

Part of lp.bugs.browser.tests.test_bugtask View In Hierarchy

No class docstring
Method makeView Make a BugTaskSearchListingView.
Method test_rendered_query_counts_constant_with_many_bugtasks Undocumented
Method test_mustache_model_in_json The IJSONRequestCache should contain mustache_model.
Method test_no_next_prev_for_single_batch The IJSONRequestCache should contain data about ajacent batches.
Method test_next_for_multiple_batch The IJSONRequestCache should contain data about the next batch.
Method test_prev_for_multiple_batch The IJSONRequestCache should contain data about the next batch.
Method test_provides_view_name The IJSONRequestCache should provide the view's name.
Method test_default_order_by order_by defaults to '-importance in JSONRequestCache
Method test_order_by_importance order_by follows query params in JSONRequestCache
Method test_cache_has_all_batch_vars_defaults Cache has all the needed variables.
Method test_cache_has_all_batch_vars_specified Cache has all the needed variables.
Method test_cache_field_visibility Cache contains sane-looking field_visibility values.
Method test_cache_cookie_name The cookie name should be in cache for js code access.
Method test_cache_field_visibility_matches_cookie Cache contains cookie-matching values for field_visibiliy.
Method test_exclude_unsupported_cookie_values Cookie values not present in defaults are ignored.
Method test_add_defaults_to_cookie_values Where cookie values are missing, defaults are used
Method test_cache_field_visibility_defaults Cache contains sane-looking field_visibility_defaults values.
Method getBugtaskBrowser Return a browser for a new bugtask.
Method assertHTML Assert something about a browser's HTML.
Static Method getBugNumberTag Bug numbers with a leading hash are unique to new rendering.
Method test_mustache_rendering If the flag is present, then all mustache features appear.
Method test_mustache_rendering_obfuscation For anonymous users, email addresses are obfuscated.
Method getNavigator Undocumented
Method test_hiding_bug_number Hiding a bug number makes it disappear from the page.
Method test_hiding_status Hiding status makes it disappear from the page.
Method test_hiding_importance Hiding importance removes the text and CSS.
Method test_show_information_type Showing information_type adds the text.
Method test_hiding_bugtarget Hiding bugtarget removes the text and CSS.
Method test_hiding_bug_heat Hiding bug heat removes the html and CSS.
Method test_hiding_milstone_name Showing milestone name shows the text.
Method test_hiding_assignee Showing milestone name shows the text.
Method test_hiding_age Showing age shows the text.
Method test_hiding_tags Showing tags shows the text.
Method test_hiding_reporter Showing reporter shows the text.
Method test_hiding_last_updated Showing last_updated shows the text.
Method test_sort_keys_in_json_cache Undocumented
Method test_sort_keys_in_json_cache_data Undocumented
Method test_tags_encoded_in_model Undocumented

Inherited from BrowserTestCase:

Method setUp Provide useful defaults.
Method getViewBrowser Undocumented
Method getMainContent Beautiful soup of the main content area of context's page.
Method getMainText Return the main text of a context's page.

Inherited from TestCaseWithFactory (via BrowserTestCase):

Method getUserBrowser Return a Browser logged in as a fresh user, maybe opened at url.
Method getNonRedirectingBrowser Undocumented
Method createBranchAtURL Create a branch at the supplied URL.
Method create_branch_and_tree Create a database branch, bzr branch and bzr checkout.
Method createBzrBranch Create a bzr branch for a database branch.
Static Method getBranchPath Return the path of the branch in the mirrored area.
Method useTempBzrHome Undocumented
Method useBzrBranches Prepare for using bzr branches.

Inherited from TestCase (via BrowserTestCase, TestCaseWithFactory):

Method becomeDbUser Commit, then log into the database as dbuser.
Method __str__ The string representation of a test is its id.
Method useContext Use the supplied context in this test.
Method makeTemporaryDirectory Create a temporary directory, and return its path.
Method installKarmaRecorder Set up and return a KarmaRecorder.
Method assertProvides Assert 'obj' correctly provides 'interface'.
Method assertNotifies Assert that a callable performs a given notification.
Method assertNoNotification Assert that no notifications are generated by the callable.
Method assertSqlAttributeEqualsDate Fail unless the value of the attribute is equal to the date.
Method assertTextMatchesExpressionIgnoreWhitespace Undocumented
Method assertIsInstance Assert that an instance is an instance of assert_class.
Method assertIsNot Assert that expected is not the same object as observed.
Method assertContentEqual Assert that 'iter1' has the same content as 'iter2'.
Method assertRaisesWithContent Check if the given exception is raised with given content.
Method assertBetween Assert that 'variable' is strictly between two boundaries.
Method assertVectorEqual Apply assertEqual to all given pairs in one go.
Method expectedLog Expect a log to be written that matches the regex.
Method pushConfig Push some key-value pairs into a section of the config.
Method attachOopses Undocumented
Method attachLibrarianLog Include the logChunks from fixture in the test details.
Method assertStatementCount Assert that the expected number of SQL statements occurred.
Method useTempDir Use a temporary directory for this test.
Method assertEmailHeadersEqual Assert that two email headers are equal.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method checkPermissions Check if the used_permissions match expected_permissions.
Method assertEmailQueueLength Pop the email queue, assert its length, and return it.
Method _unfoldEmailHeader Unfold a multiline email header.
def makeView(self, bugtask=None, size=None, memo=None, orderby=None, forwards=True, cookie=None):
Make a BugTaskSearchListingView.
ParametersbugtaskThe task to use for searching.
sizeThe size of the batches. Required if forwards is False.
memoBatch identifier.
orderbyThe way to order the batch.
forwardsIf true, walk forwards from the memo. Else walk backwards.
def test_rendered_query_counts_constant_with_many_bugtasks(self):
Undocumented
def test_mustache_model_in_json(self):
The IJSONRequestCache should contain mustache_model.

mustache_model should contain bugtasks, the BugTaskListingItem.model for each BugTask.

def test_no_next_prev_for_single_batch(self):
The IJSONRequestCache should contain data about ajacent batches.

mustache_model should contain items, the BugTaskListingItem.model for each BugTask.

def test_next_for_multiple_batch(self):
The IJSONRequestCache should contain data about the next batch.

mustache_model should contain items, the BugTaskListingItem.model for each BugTask.

def test_prev_for_multiple_batch(self):
The IJSONRequestCache should contain data about the next batch.

mustache_model should contain items, the BugTaskListingItem.model for each BugTask.

def test_provides_view_name(self):
The IJSONRequestCache should provide the view's name.
def test_default_order_by(self):
order_by defaults to '-importance in JSONRequestCache
def test_order_by_importance(self):
order_by follows query params in JSONRequestCache
def test_cache_has_all_batch_vars_defaults(self):
Cache has all the needed variables.

order_by, memo, start, forwards. These default to sane values.

def test_cache_has_all_batch_vars_specified(self):
Cache has all the needed variables.

order_by, memo, start, forwards. These are calculated appropriately.

def test_cache_field_visibility(self):
Cache contains sane-looking field_visibility values.
def test_cache_cookie_name(self):
The cookie name should be in cache for js code access.
def test_cache_field_visibility_matches_cookie(self):
Cache contains cookie-matching values for field_visibiliy.
def test_exclude_unsupported_cookie_values(self):
Cookie values not present in defaults are ignored.
def test_add_defaults_to_cookie_values(self):
Where cookie values are missing, defaults are used
def test_cache_field_visibility_defaults(self):
Cache contains sane-looking field_visibility_defaults values.
def getBugtaskBrowser(self, title=None, no_login=False):
Return a browser for a new bugtask.
def assertHTML(self, browser, *tags, **kwargs):
Assert something about a browser's HTML.
@staticmethod
def getBugNumberTag(bug_task):
Bug numbers with a leading hash are unique to new rendering.
def test_mustache_rendering(self):
If the flag is present, then all mustache features appear.
def test_mustache_rendering_obfuscation(self):
For anonymous users, email addresses are obfuscated.
def getNavigator(self):
Undocumented
def test_hiding_bug_number(self):
Hiding a bug number makes it disappear from the page.
def test_hiding_status(self):
Hiding status makes it disappear from the page.
def test_hiding_importance(self):
Hiding importance removes the text and CSS.
def test_show_information_type(self):
Showing information_type adds the text.
def test_hiding_bugtarget(self):
Hiding bugtarget removes the text and CSS.
def test_hiding_bug_heat(self):
Hiding bug heat removes the html and CSS.
def test_hiding_milstone_name(self):
Showing milestone name shows the text.
def test_hiding_assignee(self):
Showing milestone name shows the text.
def test_hiding_age(self):
Showing age shows the text.
def test_hiding_tags(self):
Showing tags shows the text.
def test_hiding_reporter(self):
Showing reporter shows the text.
def test_hiding_last_updated(self):
Showing last_updated shows the text.
def test_sort_keys_in_json_cache(self):
Undocumented
def test_sort_keys_in_json_cache_data(self):
Undocumented
def test_tags_encoded_in_model(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.