Innopolis University DevOps Playground
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Automated Commercial Offers
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
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
Ravil Nurgaliev
Automated Commercial Offers
Commits
1bc08a7f
Commit
1bc08a7f
authored
9 months ago
by
rav
Browse files
Options
Downloads
Patches
Plain Diff
changed tests
parent
dd8cd49a
Branches
Branches containing commit
No related tags found
2 merge requests
!19
Add initial CI/CD functionality - tests + lint. Deploy will be added after discussion with customer
,
!18
fixed tests to launch from console
Pipeline
#16313
failed
9 months ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/API/products_service.py
+1
-1
1 addition, 1 deletion
src/API/products_service.py
src/test/test_product_service.py
+6
-3
6 additions, 3 deletions
src/test/test_product_service.py
with
7 additions
and
4 deletions
src/API/products_service.py
+
1
−
1
View file @
1bc08a7f
...
...
@@ -5,7 +5,7 @@ import numpy as np
from
fastapi
import
FastAPI
,
HTTPException
import
pandas
as
pd
import
requests
from
src.API.exchange_rates_service
import
ExchangeRatesService
class
ProductsService
:
...
...
This diff is collapsed.
Click to expand it.
src/test/test_product_service.py
+
6
−
3
View file @
1bc08a7f
import
os
import
json
import
sys
import
os
parent_dir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
..
'
))
sys
.
path
.
insert
(
0
,
parent_dir
)
import
pandas
as
pd
import
pytest
from
unittest.mock
import
mock_open
,
patch
from
src.API.products_service
import
ProductsService
from
API.products_service
import
ProductsService
# mock of product data
...
...
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