Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Commits
81bc6206
Commit
81bc6206
authored
2 years ago
by
Saket Agrahari
Browse files
Options
Downloads
Patches
Plain Diff
tox correction
parent
c052b036
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
compendium_v2/survey_db/model.py
+0
-2
0 additions, 2 deletions
compendium_v2/survey_db/model.py
test/conftest.py
+2
-2
2 additions, 2 deletions
test/conftest.py
tox.ini
+1
-1
1 addition, 1 deletion
tox.ini
with
3 additions
and
5 deletions
compendium_v2/survey_db/model.py
+
0
−
2
View file @
81bc6206
...
...
@@ -28,5 +28,3 @@ class Nrens(base_schema):
abbreviation
=
sa
.
Column
(
sa
.
String
)
country_code
=
sa
.
Column
(
sa
.
String
)
budgets
=
relationship
(
'
Budgets
'
,
back_populates
=
'
nren
'
)
This diff is collapsed.
Click to expand it.
test/conftest.py
+
2
−
2
View file @
81bc6206
...
...
@@ -86,7 +86,7 @@ def test_budget_data():
with
survey_db
.
session_scope
()
as
session
:
data
=
_test_data_csv
(
"
BudgetTestData.csv
"
)
nrens
=
set
()
budgets_data
=
[]
budgets_data
=
[]
for
row
in
data
:
nren
=
row
[
"
nren
"
]
budget
=
row
[
"
budget
"
]
...
...
@@ -106,7 +106,7 @@ def test_budget_data():
session
.
add
(
survey_model
.
Nrens
(
abbreviation
=
nren
,
country_code
=
nren
country_code
=
nren
))
session
.
add_all
(
budgets_data
)
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
1
−
1
View file @
81bc6206
...
...
@@ -15,7 +15,7 @@ commands =
coverage
run
--source
compendium_v2
-m
pytest
{posargs}
coverage
xml
coverage
html
coverage
report
--fail-under
4
0
coverage
report
--fail-under
8
0
flake8
# Disable mypy in tox until build server supports python 3.9
# mypy compendium_v2/**/*.py test/*.py
...
...
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