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
c052b036
Commit
c052b036
authored
2 years ago
by
Saket Agrahari
Browse files
Options
Downloads
Patches
Plain Diff
test case finish survey publisher v1
parent
295cc7bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_survey_publisher_v1.py
+9
-1
9 additions, 1 deletion
test/test_survey_publisher_v1.py
with
9 additions
and
1 deletion
test/test_survey_publisher_v1.py
+
9
−
1
View file @
c052b036
import
os
from
compendium_v2
import
db
from
compendium_v2.db
import
model
from
compendium_v2.publishers.survey_publisher_v1
import
_cli
EXCEL_FILE
=
os
.
path
.
join
(
...
...
@@ -9,6 +11,12 @@ EXCEL_FILE = os.path.join(
def
test_publisher
(
client
,
mocker
,
dummy_config
):
mocker
.
patch
(
'
compendium_v2.background_task.parse_excel_data.EXCEL_FILE
'
,
return_value
=
EXCEL_FILE
)
EXCEL_FILE
)
_cli
(
dummy_config
)
with
db
.
session_scope
()
as
session
:
budget_count
=
session
.
query
(
model
.
BudgetEntry
.
year
).
count
()
assert
budget_count
funding_source_count
=
session
.
query
(
model
.
FundingSource
.
year
).
count
()
assert
funding_source_count
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