Skip to content

Fixes #2019. Append extra labels in correct format.#2020

Merged
karlcow merged 1 commit intomasterfrom
extra-bug
Jan 12, 2018
Merged

Fixes #2019. Append extra labels in correct format.#2020
karlcow merged 1 commit intomasterfrom
extra-bug

Conversation

@miketaylr
Copy link
Copy Markdown
Member

The intermediary metadata list expects a list of tuples, with the
metadata key being the first member of the tuple, and its value the
second.

Also, adds an assertion to explicitly test getting extra_labels metadata, since it gets special handling.

The intermediary metadata list expects a list of tuples, with the
metadata key being the first member of the tuple, and its value the
second.
@miketaylr miketaylr requested a review from karlcow January 12, 2018 03:47
@miketaylr
Copy link
Copy Markdown
Member Author

r? @karlcow

Comment thread tests/test_form.py
actual = form.get_metadata(metadata_keys, form_object)
expected = u'<!-- @sky: blue -->\n<!-- @earth: None -->\n'
self.assertEqual(actual, expected)
form_object = MultiDict([

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

Copy link
Copy Markdown
Member

@karlcow karlcow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

→ nosetests -v tests/test_form.py
The data body sent to GitHub API. ... ok
Check that domain name is extracted. ... ok
Checks we return the right form with the appropriate data. ... ok
HTML comments need the right values depending on the keys. ... ok
Check that metadata is processed and wrapped. ... ok
Avoid some type of strings. ... ok
Check that URL is normalized. ... ok
Check that appropriate radio button label is returned. ... ok

----------------------------------------------------------------------
Ran 8 tests in 0.006s

OK

Thanks Mike. This is all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants