diff --git a/coreapi/document.py b/coreapi/document.py index 0fb62a7..c6c9ceb 100644 --- a/coreapi/document.py +++ b/coreapi/document.py @@ -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) diff --git a/coreapi/utils.py b/coreapi/utils.py index 0b27d46..fb7ade4 100644 --- a/coreapi/utils.py +++ b/coreapi/utils.py @@ -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. diff --git a/runtests b/runtests index 54a984d..8b260d9 100755 --- a/runtests +++ b/runtests @@ -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: diff --git a/tests/test_document.py b/tests/test_document.py index db1d1c1..6b06de7 100644 --- a/tests/test_document.py +++ b/tests/test_document.py @@ -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()