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
6a8ca2e8
Commit
6a8ca2e8
authored
4 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
removed unnecessary test
parent
b95102be
No related branches found
Branches containing commit
Tags
v5.9.24
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_coding/test_algos.py
+1
-8
1 addition, 8 deletions
tests/test_coding/test_algos.py
tests/test_coding/test_structures.py
+1
-1
1 addition, 1 deletion
tests/test_coding/test_structures.py
with
2 additions
and
9 deletions
tests/test_coding/test_algos.py
+
1
−
8
View file @
6a8ca2e8
...
...
@@ -18,18 +18,11 @@ class TestMergeDicts(unittest.TestCase):
update_attr_if_none
(
a
,
'
c
'
,
8
)
self
.
assertEqual
(
a
.
b
,
5
)
self
.
assertRaises
(
AttributeError
,
lambda
:
update_attr_if_none
(
a
,
'
c
'
,
6
,
on_attribute_error
=
False
))
a
,
'
d
'
,
6
,
on_attribute_error
=
False
))
update_attr_if_none
(
a
,
'
b
'
,
6
,
if_value_is_not_none
=
True
)
self
.
assertEqual
(
a
.
b
,
6
)
self
.
assertEqual
(
a
.
c
,
8
)
def
test_lolwut
(
self
):
try
:
with
open
(
'
lolwut
'
,
'
wb
'
)
as
fout
:
fout
.
write
(
b
'
{
"
a
"
:2}
'
)
finally
:
os
.
unlink
(
'
lolwut
'
)
def
test_advanced_merge_dicts
(
self
):
DA
=
{
...
...
This diff is collapsed.
Click to expand it.
tests/test_coding/test_structures.py
+
1
−
1
View file @
6a8ca2e8
...
...
@@ -232,7 +232,7 @@ class TestMisc(unittest.TestCase):
del
sc_dd
[
'
test
'
]
self
.
assertEqual
(
len
(
sc_dd
),
0
)
def
test_self_cleaning_default_dict_backgro
n
ud_maintenance
(
self
):
def
test_self_cleaning_default_dict_backgrou
n
d_maintenance
(
self
):
sc_dd
=
SelfCleaningDefaultDict
(
list
)
sc_dd
[
'
test
'
]
=
[
1
]
sc_dd
[
'
test
'
].
pop
()
...
...
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