Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 12, 2018
Merged

Conversation

miketaylr
Copy link
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
Member Author

r? @karlcow

@@ -129,6 +131,17 @@ def test_get_metadata(self):
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
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