Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
f024386d
Commit
f024386d
authored
3 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-259
: Improve spelling and grammar
parent
87de7b54
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!58
L2SS-259: Integrate unit tests using Continuous Integration (CI)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
devices/test/README.md
+3
-3
3 additions, 3 deletions
devices/test/README.md
with
3 additions
and
3 deletions
devices/test/README.md
+
3
−
3
View file @
f024386d
...
...
@@ -69,9 +69,9 @@ and adding _test__ to the beginning. Below is an example:
## Mocking
Contrar
il
y to many other programming languages, it is entirely possible to
Contrary to many other programming languages, it is entirely possible to
modify
**any**
function, object, file, import at runtime. This allows for a
great of flexibility but also simplicity in the case of unit tests.
great
deal
of flexibility but also simplicity in the case of unit tests.
Isolating functions is as simple as mocking any of the classes or functions it
uses and modifying its return values such as specific behavior can be tested.
...
...
@@ -95,7 +95,7 @@ def function_under_test(self):
def
test_function_under_test
(
self
,
m_special_char
):
"""
Test functionality of `function_under_test`
This mock decorator _temporarily_ overwrit
t
es the :py:func:`special_char`
This mock decorator _temporarily_ overwrites the :py:func:`special_char`
function within :py:module:`our_custom_module`. We get access to this
mocked object as function argument. Concurrent dependencies of these mock
statements are automatically solved by stestr.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment