Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit e52b2e8

Browse files
committed
Test D100
1 parent 153b0fe commit e52b2e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Docstring."""
21
# encoding: utf-8
2+
# No docstring, so we can test D100
33
import sys
44

55

@@ -204,6 +204,7 @@ def foobar():
204204
def run():
205205
"""Run the functions above and check errors agains expected errors."""
206206
import pep257
207+
expect(__file__, 'D100: Docstring missing')
207208
results = list(pep257.check([__file__]))
208209
assert set(map(type, results)) == set([pep257.Error]), results
209210
results = set([(e.definition.name, e.message) for e in results])

0 commit comments

Comments
 (0)