Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lde-api-regression-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
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
simcaq
lde-api-regression-test
Commits
437c50bf
Commit
437c50bf
authored
5 years ago
by
Hamer Iboshi
Browse files
Options
Downloads
Patches
Plain Diff
Update compare print route name and dimensions
parent
b38e0f22
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
regression_test.py
+3
-3
3 additions, 3 deletions
regression_test.py
with
3 additions
and
3 deletions
regression_test.py
+
3
−
3
View file @
437c50bf
...
...
@@ -62,14 +62,14 @@ class RegressionTest:
api_csv
=
pd
.
read_csv
(
url
,
float_precision
=
'
round_trip
'
,
encoding
=
"
utf-8-sig
"
)
#get from api
csv_route
=
pd
.
read_csv
(
'
route_result/
'
+
file_name
+
'
.csv
'
,
index_col
=
0
,
float_precision
=
'
round_trip
'
,
encoding
=
"
utf-8-sig
"
)
#get file
if
csv_route
.
equals
(
api_csv
):
#comparing csv
cprint
(
name
+
'
OK!
'
,
'
green
'
)
cprint
(
file_
name
+
'
OK!
'
,
'
green
'
)
else
:
fail
+=
1
cprint
(
name
+
'
FAIL!
'
,
'
red
'
)
cprint
(
file_
name
+
'
FAIL!
'
,
'
red
'
)
if
verbose
:
print
(
pd
.
concat
([
csv_route
,
api_csv
]).
drop_duplicates
(
keep
=
False
))
except
Exception
as
ex
:
cprint
(
str
(
ex
)
+
"
\n
"
+
name
+
'
FAIL!
'
,
'
red
'
)
cprint
(
str
(
ex
)
+
"
\n
"
+
file_
name
+
'
FAIL!
'
,
'
red
'
)
fail
+=
1
cprint
(
'
TOTAL FAIL:
'
+
str
(
fail
),
'
red
'
)
if
(
fail
>
0
):
...
...
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