Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine
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
Container 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
AURA
engine
Commits
70ea0dbe
Commit
70ea0dbe
authored
1 year ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
fix: comment app test as temp workaround
parent
d5b35e76
No related branches found
No related tags found
1 merge request
!20
Preparations for ORM-less scheduling
Pipeline
#3344
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_app.py
+13
-14
13 additions, 14 deletions
tests/test_app.py
with
13 additions
and
14 deletions
tests/test_app.py
+
13
−
14
View file @
70ea0dbe
...
@@ -18,13 +18,12 @@
...
@@ -18,13 +18,12 @@
import
unittest
import
unittest
from
threading
import
Timer
from
unittest
import
mock
from
unittest.mock
import
Mock
,
patch
from
aura_engine.app
import
EngineRunner
#
from aura_engine.app import EngineRunner
from
aura_engine.base.config
import
AuraConfig
from
aura_engine.base.config
import
AuraConfig
# from unittest import mock
class
TestApp
(
unittest
.
TestCase
):
class
TestApp
(
unittest
.
TestCase
):
"""
"""
...
@@ -58,16 +57,16 @@ class TestApp(unittest.TestCase):
...
@@ -58,16 +57,16 @@ class TestApp(unittest.TestCase):
# - tests.test_engine_executor - test_parent_child_executors_with_child_before
# - tests.test_engine_executor - test_parent_child_executors_with_child_before
# - tests.test_engine_executor - test_timer_store_replacement_after_parent_execution
# - tests.test_engine_executor - test_timer_store_replacement_after_parent_execution
#
#
@
patch
(
"
aura_engine.engine.Engine.start
"
,
side_effect
=
mocked_engine_start
)
# @mock.
patch("aura_engine.engine.Engine.start", side_effect=mocked_engine_start)
def
DISABED__
test_run_app
(
self
,
engine_start_mock
):
#
def test_run_app(self, engine_start_mock):
runner
=
EngineRunner
()
#
runner = EngineRunner()
self
.
assertIsNotNone
(
runner
)
#
self.assertIsNotNone(runner)
runner
.
run
()
#
runner.run()
try
:
#
try:
runner
.
exit_gracefully
(
signum
=
1
,
frame
=
1
)
#
runner.exit_gracefully(signum=1, frame=1)
except
:
#
except:
pass
#
pass
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
...
...
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