All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
10 # resolve_to_config_type,
11 # DEFAULT_TYPE_ATTRIBUTES,
23 # resolve_to_config_type,
24 # DEFAULT_TYPE_ATTRIBUTES,
26 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
27 MyLovelyCompanyTeamProjectComponent # NOT DRY
29 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
30 MyLovelyCompanyTeamProjectComponent as component # DRY
34 result = 1 # look ma, no comment migration xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
37 1 # look ma, no comment migration xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
41 "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # aaa
44 result = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # aaa
77 # The type: ignore exception only applies to line length, not
78 # other types of formatting.
80 "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", # type: ignore
81 "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa"
86 @pytest.mark.parametrize(
87 ("post_data", "message"),
89 # metadata_version errors.
92 "None is an invalid value for Metadata-Version. Error: This field is"
94 " https://packaging.python.org/specifications/core-metadata"
97 {"metadata_version": "-1"},
98 "'-1' is an invalid value for Metadata-Version. Error: Unknown Metadata"
100 " https://packaging.python.org/specifications/core-metadata"
104 {"metadata_version": "1.2"},
105 "'' is an invalid value for Name. Error: This field is required. see"
106 " https://packaging.python.org/specifications/core-metadata"
109 {"metadata_version": "1.2", "name": "foo-"},
110 "'foo-' is an invalid value for Name. Error: Must start and end with a"
111 " letter or numeral and contain only ascii numeric and '.', '_' and"
112 " '-'. see https://packaging.python.org/specifications/core-metadata"
116 {"metadata_version": "1.2", "name": "example"},
117 "'' is an invalid value for Version. Error: This field is required. see"
118 " https://packaging.python.org/specifications/core-metadata"
121 {"metadata_version": "1.2", "name": "example", "version": "dog"},
122 "'dog' is an invalid value for Version. Error: Must start and end with"
123 " a letter or numeral and contain only ascii numeric and '.', '_' and"
124 " '-'. see https://packaging.python.org/specifications/core-metadata"
128 def test_fails_invalid_post_data(
129 self, pyramid_config, db_request, post_data, message
133 square = Square(4) # type: Optional[Square]
135 # Regression test for https://github.com/psf/black/issues/3756.
138 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
142 ( # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
143 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
149 from .config import (
153 ConfigTypeAttributes,
157 # resolve_to_config_type,
158 # DEFAULT_TYPE_ATTRIBUTES,
162 from .config import (
166 ConfigTypeAttributes,
170 # resolve_to_config_type,
171 # DEFAULT_TYPE_ATTRIBUTES,
173 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
174 MyLovelyCompanyTeamProjectComponent, # NOT DRY
176 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
177 MyLovelyCompanyTeamProjectComponent as component, # DRY
181 result = 1 # look ma, no comment migration xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
183 result = 1 # look ma, no comment migration xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
186 "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
190 "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
201 a[-1], # type: ignore
203 c = call(0.0123, 0.0456, 0.0789, 0.0123, 0.0789, a[-1]) # type: ignore
214 a[-1], # type: ignore
217 # The type: ignore exception only applies to line length, not
218 # other types of formatting.
225 "aaaaaaaa", # type: ignore
236 @pytest.mark.parametrize(
237 ("post_data", "message"),
239 # metadata_version errors.
243 "None is an invalid value for Metadata-Version. Error: This field"
245 " https://packaging.python.org/specifications/core-metadata"
249 {"metadata_version": "-1"},
251 "'-1' is an invalid value for Metadata-Version. Error: Unknown"
252 " Metadata Version see"
253 " https://packaging.python.org/specifications/core-metadata"
258 {"metadata_version": "1.2"},
260 "'' is an invalid value for Name. Error: This field is required."
261 " see https://packaging.python.org/specifications/core-metadata"
265 {"metadata_version": "1.2", "name": "foo-"},
267 "'foo-' is an invalid value for Name. Error: Must start and end"
268 " with a letter or numeral and contain only ascii numeric and '.',"
270 " https://packaging.python.org/specifications/core-metadata"
275 {"metadata_version": "1.2", "name": "example"},
277 "'' is an invalid value for Version. Error: This field is required."
278 " see https://packaging.python.org/specifications/core-metadata"
282 {"metadata_version": "1.2", "name": "example", "version": "dog"},
284 "'dog' is an invalid value for Version. Error: Must start and end"
285 " with a letter or numeral and contain only ascii numeric and '.',"
287 " https://packaging.python.org/specifications/core-metadata"
292 def test_fails_invalid_post_data(
293 self, pyramid_config, db_request, post_data, message
297 square = Square(4) # type: Optional[Square]
299 # Regression test for https://github.com/psf/black/issues/3756.
301 ( # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
302 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
306 ( # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
307 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa