Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
cloudooo
Commits
3039ec7a
Commit
3039ec7a
authored
Jul 11, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Propagate env configuration to testOooOpenOffice
parent
6682da8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
cloudooo/handler/ooo/tests/testOooOpenOffice.py
cloudooo/handler/ooo/tests/testOooOpenOffice.py
+6
-3
cloudooo/tests/handlerTestCase.py
cloudooo/tests/handlerTestCase.py
+4
-0
No files found.
cloudooo/handler/ooo/tests/testOooOpenOffice.py
View file @
3039ec7a
...
...
@@ -43,7 +43,8 @@ class TestOpenOffice(HandlerTestCase):
self
.
working_path
,
self
.
office_binary_path
,
self
.
uno_path
,
'en'
)
'en'
,
self
.
environment_dict
)
self
.
openoffice
.
start
()
def
tearDown
(
self
):
...
...
@@ -94,7 +95,8 @@ class TestOpenOffice(HandlerTestCase):
self
.
working_path
,
self
.
office_binary_path
,
self
.
uno_path
,
'en'
)
'en'
,
self
.
environment_dict
)
second_openoffice
.
start
()
self
.
assertEquals
(
self
.
openoffice
.
status
(),
False
)
self
.
assertTrue
(
second_openoffice
.
status
())
...
...
@@ -106,7 +108,8 @@ class TestOpenOffice(HandlerTestCase):
self
.
working_path
,
self
.
office_binary_path
,
self
.
uno_path
,
'en'
)
'en'
,
self
.
environment_dict
)
second_openoffice
.
start
()
self
.
assertTrue
(
self
.
openoffice
.
status
())
self
.
assertTrue
(
second_openoffice
.
status
())
...
...
cloudooo/tests/handlerTestCase.py
View file @
3039ec7a
...
...
@@ -128,6 +128,10 @@ class HandlerTestCase(unittest.TestCase):
self
.
tmp_url
=
path
.
join
(
self
.
working_path
,
"tmp"
)
check_folder
(
self
.
working_path
,
self
.
tmp_url
)
self
.
uno_path
=
config
.
get
(
"app:main"
,
"uno_path"
)
self
.
environment_dict
=
{}
for
item
in
config
.
options
(
"app:main"
):
if
item
.
startswith
(
"env-"
):
self
.
environment_dict
[
item
[
4
:].
upper
()]
=
config
.
get
(
"app:main"
,
item
)
self
.
afterSetUp
()
def
afterSetUp
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment