@@ -137,33 +137,13 @@ def test_check_invalid_dep_name_same_as_project_name(
137
137
),
138
138
new_callable = mocker .PropertyMock ,
139
139
)
140
- tester .execute ("--lock" )
141
- fastjsonschema_error = "data must contain ['description'] properties"
142
- custom_error = "The fields ['description'] are required in package mode."
143
- expected_template = """\
140
+ tester .execute ("" )
141
+
142
+ expected = """\
144
143
Error: Project name (invalid) is same as one of its dependencies
145
- Error: Unrecognized classifiers: ['Intended Audience :: Clowns'].
146
- Error: Declared README file does not exist: never/exists.md
147
- Error: Invalid source "exists" referenced in dependencies.
148
- Error: Invalid source "not-exists" referenced in dependencies.
149
- Error: Invalid source "not-exists2" referenced in dependencies.
150
- Error: poetry.lock was not found.
151
- Warning: A wildcard Python dependency is ambiguous.\
152
- Consider specifying a more explicit one.
153
- Warning: The "pendulum" dependency specifies the "allows-prereleases" property,\
154
- which is deprecated. Use "allow-prereleases" instead.
155
- Warning: Deprecated classifier 'Natural Language :: Ukranian'.\
156
- Must be replaced by ['Natural Language :: Ukrainian'].
157
- Warning: Deprecated classifier\
158
- 'Topic :: Communications :: Chat :: AOL Instant Messenger'.\
159
- Must be removed.
160
144
"""
161
- expected = {
162
- expected_template .format (schema_error = schema_error )
163
- for schema_error in (fastjsonschema_error , custom_error )
164
- }
165
145
166
- assert tester .io .fetch_error () in expected
146
+ assert tester .io .fetch_error () == expected
167
147
168
148
169
149
def test_check_invalid (
0 commit comments