Skip to content

Commit 7b20ad9

Browse files
authored
Fix not on reference data in test suite (#270)
1 parent 3f5df58 commit 7b20ad9

File tree

1 file changed

+1
-1
lines changed
  • content/languages/python/authoring

1 file changed

+1
-1
lines changed

content/languages/python/authoring/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ The Codewars runner provides a set of preinstalled packages, which are available
167167

168168
If the test suite happens to use a reference solution to calculate expected values (which [should be avoided](/authoring/guidelines/submission-tests/#reference-solution) when possible), or some kind of reference data like precalculated lists, etc., it must not be possible for the user to redefine, overwrite or directly access its contents. To prevent this, it should be defined in a scope local to the testing function, a `it` or a `describe` block.
169169

170-
The reference solution or data ___must not___ be defined in the top-level scope of the test suite or in the [Preloaded code](/authoring/guidelines/preloaded/).
170+
The reference solution or data ___must not___ be defined in the [Preloaded code](/authoring/guidelines/preloaded/). The reference solution ___must not___ be defined in the top-level scope of the test suite.
171171

172172
### Calling assertions
173173

0 commit comments

Comments
 (0)