Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coreapi/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _key_sorting(item):

# The field class, as used by Link objects:

# NOTE: 'type', 'description' and 'examaple' are now deprecated,
# NOTE: 'type', 'description' and 'example' are now deprecated,
# in favor of 'schema'.
Field = namedtuple('Field', ['name', 'required', 'location', 'schema', 'description', 'type', 'example'])
Field.__new__.__defaults__ = (False, '', None, None, None, None)
Expand Down
2 changes: 1 addition & 1 deletion coreapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def negotiate_encoder(encoders, accept=None):
raise exceptions.NoCodecAvailable(msg)


# Validation utilities. Used to ensure that we get consitent validation
# Validation utilities. Used to ensure that we get consistent validation
# exceptions when invalid types are passed as a parameter, rather than
# an exception occuring when the request is made.

Expand Down
4 changes: 2 additions & 2 deletions runtests
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def flake8_main(args):


def report_coverage(cov, fail_if_not_100=False):
precent_covered = cov.report(
percent_covered = cov.report(
file=NullFile(), **COVERAGE_OPTIONS
)
if precent_covered == 100:
if percent_covered == 100:
print('100% coverage')
return
if fail_if_not_100:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def error():

def _dedent(string):
"""
Convience function for dedenting multiline strings,
Convenience function for dedenting multiline strings,
for string comparison purposes.
"""
lines = string.splitlines()
Expand Down