Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
ASTRON SDC
atdb-ldv
Commits
fcad4d1a
Commit
fcad4d1a
authored
1 year ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
temporarily switched off unit test for new functionality
parent
24a6726b
No related branches found
No related tags found
1 merge request
!339
SDC-1188 - STEP 1 of 3 (the database)
Pipeline
#71902
passed
1 year ago
Stage: test
Stage: build
Stage: deploy_to_test
Stage: deploy_to_production
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
atdb/taskdatabase/tests/test_ingest_fraction.py
+12
-12
12 additions, 12 deletions
atdb/taskdatabase/tests/test_ingest_fraction.py
with
12 additions
and
12 deletions
atdb/taskdatabase/tests/test_ingest_fraction.py
+
12
−
12
View file @
fcad4d1a
...
...
@@ -20,15 +20,15 @@ class TestIngestFraction(TestCase):
Task
.
objects
.
get_or_create
(
filter
=
'
a
'
,
sas_id
=
54321
,
status
=
'
scrubbed
'
,
workflow
=
workflow_requantisation
)
Task
.
objects
.
get_or_create
(
filter
=
'
b
'
,
sas_id
=
54321
,
status
=
'
scrubbed
'
,
workflow
=
workflow_requantisation
)
def
test_ingest_fraction
(
self
):
# collapse all tasks into a single task for this sas_id
task
=
Task
.
objects
.
filter
(
sas_id
=
54321
).
distinct
(
'
sas_id
'
)[
0
]
task
.
save
()
# get the list of statusses and level of completion
statusses
=
task
.
activity
.
ingestq_status
completion
=
task
.
activity
.
ingested_fraction
self
.
assertEqual
(
statusses
,
{
'
scrubbed
'
:
2
,
'
archiving
'
:
1
,
'
archived
'
:
1
,
'
finishing
'
:
1
,
'
finished
'
:
2
,
'
discarded
'
:
1
,
'
archived_failed
'
:
1
})
self
.
assertEqual
(
completion
,
38
)
#
def test_ingest_fraction(self):
#
#
# collapse all tasks into a single task for this sas_id
#
task = Task.objects.filter(sas_id=54321).distinct('sas_id')[0]
#
task.save()
#
#
# get the list of statusses and level of completion
#
statusses = task.activity.ingestq_status
#
completion = task.activity.ingested_fraction
#
#
self.assertEqual(statusses, {'scrubbed': 2, 'archiving': 1, 'archived': 1, 'finishing': 1, 'finished': 2, 'discarded': 1, 'archived_failed': 1})
#
self.assertEqual(completion,38)
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