Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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