-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
case.{Function,Method}TestCase: deobfuscate references to self.arg_repr
Previously, both `FunctionTestCase` and `MethodTestCase` created local `arg` variables in their `__str__` methods. These variables were simply references to `self.arg_repr`, so this commit deobfuscates this reference by modifying the `_descriptors` method for each so that *only the test name* is returned and not the `arg_repr` also (renaming `_descriptors` to `_descriptor` in the process), and then referring to `self.arg_repr` directly. This makes the `__str__` easier to understand because it is immediately obvious that we're only dealing with the string-representation of the args and *not* the actual args themselves.
- Loading branch information
1 parent
0164f01
commit c37ce12
Showing
1 changed file
with
19 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters