diff --git a/doc/src/advanced.rst b/doc/src/advanced.rst index f5ef02a..9af47d6 100644 --- a/doc/src/advanced.rst +++ b/doc/src/advanced.rst @@ -18,7 +18,7 @@ Consider the following example test module: In principle, this example works the very same way as the basic example for :ref:`usage-parametrized`. The only difference is that -the lists of paramters are dynamically compiled beforehand. The test +the lists of parameters are dynamically compiled beforehand. The test for child `l` deliberately fails, just to show the effect. As a consequence, the test for its parent `d` will be skipped. diff --git a/doc/src/scope.rst b/doc/src/scope.rst index 1e78a29..5d71802 100644 --- a/doc/src/scope.rst +++ b/doc/src/scope.rst @@ -16,8 +16,8 @@ or `'class'`. versions, all dependencies were implicitly in module scope. -Explicitely specifying the scope --------------------------------- +Explicitly specifying the scope +------------------------------- The default value for the `scope` argument is `'module'`. Thus, the very first example from Section :ref:`usage-basic` could also be diff --git a/doc/src/usage.rst b/doc/src/usage.rst index be97ef2..ddbb03e 100644 --- a/doc/src/usage.rst +++ b/doc/src/usage.rst @@ -21,7 +21,7 @@ test, we will get the following result: .. literalinclude:: ../examples/basic.out The first test has deliberately been set to fail to illustrate the -effect. We will get the following resuts: +effect. We will get the following results: `test_a` deliberately fails. @@ -50,7 +50,7 @@ see Section :ref:`names` for details. In some cases, it's not easy to predict the names of the node ids. For this reason, the name of the tests can be overridden by an explicit `name` argument to the marker. The names must be unique. The following example works exactly as the -last one, only the test names are explicitely set: +last one, only the test names are explicitly set: .. literalinclude:: ../examples/named.py @@ -94,7 +94,7 @@ Marking dependencies at runtime ------------------------------- Sometimes, dependencies of test instances are too complicated to be -formulated explicitely beforehand using the +formulated explicitly beforehand using the :func:`pytest.mark.dependency` marker. It may be easier to compile the list of dependencies of a test at run time. In such cases, the function :func:`pytest_dependency.depends` comes handy. Consider the diff --git a/tests/test_03_class.py b/tests/test_03_class.py index 168b634..64bdb6d 100644 --- a/tests/test_03_class.py +++ b/tests/test_03_class.py @@ -47,7 +47,7 @@ def test_e(self): def test_class_simple_named(ctestdir): """Mostly the same as test_class_simple(), but name the test methods - now explicitely. + now explicitly. """ ctestdir.makepyfile(""" import pytest diff --git a/tests/test_03_scope.py b/tests/test_03_scope.py index 58aad89..17efe82 100644 --- a/tests/test_03_scope.py +++ b/tests/test_03_scope.py @@ -5,7 +5,7 @@ def test_scope_module(ctestdir): - """One single module, module scope is explicitely set in the + """One single module, module scope is explicitly set in the pytest.mark.dependency() marker. """ ctestdir.makepyfile(""" @@ -379,7 +379,7 @@ def test_o(self): """) def test_scope_named(ctestdir): - """Explicitely named tests are always referenced by that name, + """Explicitly named tests are always referenced by that name, regardless of the scope. """ ctestdir.makepyfile(""" diff --git a/tests/test_09_examples_scope.py b/tests/test_09_examples_scope.py index 98a2400..7975e5a 100644 --- a/tests/test_09_examples_scope.py +++ b/tests/test_09_examples_scope.py @@ -7,7 +7,7 @@ def test_scope_module(ctestdir): - """Explicitely specifying the scope + """Explicitly specifying the scope """ with get_example("scope_module.py").open("rt") as f: ctestdir.makepyfile(f.read())