Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
f439ea95
Commit
f439ea95
authored
1 year ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
fix unit tests
parent
b0002d18
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
satella/instrumentation/memory/conditions.py
+3
-3
3 additions, 3 deletions
satella/instrumentation/memory/conditions.py
tests/test_instrumentation/test_memory.py
+1
-1
1 addition, 1 deletion
tests/test_instrumentation/test_memory.py
with
5 additions
and
5 deletions
pyproject.toml
+
1
−
1
View file @
f439ea95
...
...
@@ -90,7 +90,7 @@ log_cli = true
[tool.pylint.format]
max-line-length
=
120
[tool.pylint.
"
MESSAGES CONTROL
"
]
[tool.pylint.
'
MESSAGES CONTROL
'
]
disable
=
'''
missing-module-docstring,
missing-class-docstring,
...
...
This diff is collapsed.
Click to expand it.
satella/instrumentation/memory/conditions.py
+
3
−
3
View file @
f439ea95
...
...
@@ -39,7 +39,7 @@ class ZerothSeverity(BaseCondition):
class
OperationJoin
(
BaseCondition
):
__slots__
=
(
'
conditions
'
,
)
__slots__
=
'
conditions
'
,
_OPERATOR
=
lambda
y
,
z
:
y
and
z
# pylint: disable=invalid-name
_STARTING_VALUE
=
False
# pylint: disable=invalid-name
...
...
@@ -71,7 +71,7 @@ class All(OperationJoin):
class
Not
(
BaseCondition
):
"""
True only if provided condition is false
"""
__slots__
=
(
'
condition
'
,
)
__slots__
=
'
condition
'
,
def
__init__
(
self
,
condition
:
BaseCondition
):
self
.
condition
=
condition
...
...
@@ -128,7 +128,7 @@ class CustomCondition(BaseCondition):
:param callable_: callable to call upon asking whether this condition is valid. This
should be relatively cheap to compute.
"""
__slots__
=
(
'
callable
'
,
)
__slots__
=
'
callable
'
,
def
__init__
(
self
,
callable_
:
NoArgCallable
[
bool
]):
self
.
callable
=
callable_
...
...
This diff is collapsed.
Click to expand it.
tests/test_instrumentation/test_memory.py
+
1
−
1
View file @
f439ea95
...
...
@@ -22,7 +22,7 @@ class OnDemandCondition(CustomCondition):
class
TestMemory
(
unittest
.
TestCase
):
@unittest.skipIf
(
sys
.
platform
==
'
PyPy
'
,
'
This will not work on PyPy
'
)
@unittest.skipIf
(
platform
.
python_implementation
()
,
'
This will not work on PyPy
'
)
def
test_get_size_dict
(
self
):
a
=
{
'
aba
'
:
'
aba
'
}
...
...
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