Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rdos-python
Manage
Activity
Members
Labels
Plan
Issues
0
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien David
rdos-python
Commits
026d245a
Commit
026d245a
authored
4 years ago
by
Ismail Moumni
Browse files
Options
Downloads
Patches
Plain Diff
errors corrected
parent
b87d82fa
No related branches found
No related tags found
1 merge request
!7
addding help function
Pipeline
#1498
failed with stage
in 15 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/test_match_dict.py
+2
-2
2 additions, 2 deletions
tests/test_match_dict.py
tests/test_match_json.py
+3
-3
3 additions, 3 deletions
tests/test_match_json.py
tests/test_missing_json.py
+3
-3
3 additions, 3 deletions
tests/test_missing_json.py
with
8 additions
and
8 deletions
tests/test_match_dict.py
+
2
−
2
View file @
026d245a
...
@@ -11,10 +11,10 @@ test_dict2 = {"name": "Michael", "Rafael": ""}
...
@@ -11,10 +11,10 @@ test_dict2 = {"name": "Michael", "Rafael": ""}
def
test_missing_keys
():
def
test_missing_keys
():
var
=
client
.
RdosClient
.
missing_keys
(
test_dict1
,
test_dict2
)
var
=
client
.
RdosClient
.
missing_keys
(
client
.
RdosClient
,
test_dict1
,
test_dict2
)
assert
not
var
assert
not
var
def
test_bad_missing
():
def
test_bad_missing
():
with
pytest
.
raises
(
Exception
):
with
pytest
.
raises
(
Exception
):
assert
client
.
RdosClient
.
missing_keys
({},
test_dict1
)
assert
client
.
RdosClient
.
missing_keys
(
client
.
RdosClient
,
{},
test_dict1
)
This diff is collapsed.
Click to expand it.
tests/test_match_json.py
+
3
−
3
View file @
026d245a
...
@@ -14,15 +14,15 @@ obj2 = json.loads(bad_data)
...
@@ -14,15 +14,15 @@ obj2 = json.loads(bad_data)
def
test_match_dict
():
def
test_match_dict
():
var
=
client
.
RdosClient
.
missing_keys
(
obj
,
obj
)
var
=
client
.
RdosClient
.
missing_keys
(
client
.
RdosClient
,
obj
,
obj
)
assert
var
==
[]
assert
var
==
[]
def
test_diff_match_dict
():
def
test_diff_match_dict
():
result
=
client
.
RdosClient
.
missing_keys
(
obj
,
obj2
)
result
=
client
.
RdosClient
.
missing_keys
(
client
.
RdosClient
,
obj
,
obj2
)
assert
result
is
not
None
assert
result
is
not
None
def
test_bad_match_dict
():
def
test_bad_match_dict
():
with
pytest
.
raises
(
Exception
):
with
pytest
.
raises
(
Exception
):
assert
client
.
RdosClient
.
missing_keys
({},
obj
)
assert
client
.
RdosClient
.
missing_keys
(
client
.
RdosClient
,
{},
obj
)
This diff is collapsed.
Click to expand it.
tests/test_missing_json.py
+
3
−
3
View file @
026d245a
...
@@ -15,15 +15,15 @@ obj2 = (json.loads(data2))
...
@@ -15,15 +15,15 @@ obj2 = (json.loads(data2))
def
test_missing_json
():
def
test_missing_json
():
var
=
client
.
RdosClient
.
missing_keys
(
obj
,
obj
)
var
=
client
.
RdosClient
.
missing_keys
(
client
.
RdosClient
,
obj
,
obj
)
assert
var
==
[]
assert
var
==
[]
def
test_diff_missing_json
():
def
test_diff_missing_json
():
result
=
client
.
RdosClient
.
missing_keys
(
obj
,
obj2
)
result
=
client
.
RdosClient
.
missing_keys
(
client
.
RdosClient
,
obj
,
obj2
)
assert
result
is
not
None
assert
result
is
not
None
def
test_bad_match_json
():
def
test_bad_match_json
():
with
pytest
.
raises
(
Exception
):
with
pytest
.
raises
(
Exception
):
assert
client
.
RdosClient
.
missing_keys
({},
obj
)
assert
client
.
RdosClient
.
missing_keys
(
client
.
RdosClient
,
{},
obj
)
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