Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
b33dfa64
Commit
b33dfa64
authored
May 23, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename method, so that unittest module doesn't recognize it as a test
parent
869b56b3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
UNGTestMixin.py
UNGTestMixin.py
+1
-1
testUNGDocs.py
testUNGDocs.py
+2
-2
testUNGDocsTextEditor.py
testUNGDocsTextEditor.py
+1
-1
No files found.
UNGTestMixin.py
View file @
b33dfa64
...
...
@@ -76,7 +76,7 @@ class UNGTestMixin(unittest.TestCase):
self
.
selenium
.
open
(
""
)
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
def
get_
test_
file_path
(
self
,
filename
):
def
get_file_path
(
self
,
filename
):
"""returns the absolute path to a test file given a 'filename'"""
return
os
.
path
.
join
(
os
.
path
.
abspath
(
os
.
curdir
),
'test_data'
,
filename
)
...
...
testUNGDocs.py
View file @
b33dfa64
...
...
@@ -139,7 +139,7 @@ class TestUNGDocs(UNGTestMixin):
def
test_web_table_upload_twice
(
self
):
"""test the twice upload of a spreadsheet file into a Web Table
document."""
test_file_path
=
se
lf
.
get_tes
t_file_path
(
"tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods"
)
test_file_path
=
se
f
.
ge
t_file_path
(
"tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods"
)
for
index
in
range
(
2
):
self
.
selenium
.
click
(
"//a[@class=
\
"
ung_docs
\
"
]"
)
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
...
...
@@ -162,7 +162,7 @@ class TestUNGDocs(UNGTestMixin):
def
test_web_table_upload_converting_to_web_page
(
self
):
"""test upload of a spreadsheet converting to a Web Page document"""
test_file_path
=
se
lf
.
get_tes
t_file_path
(
"tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods"
)
test_file_path
=
se
f
.
ge
t_file_path
(
"tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods"
)
self
.
selenium
.
click
(
"//a[@class=
\
"
ung_docs
\
"
]"
)
self
.
selenium
.
wait_for_page_to_load
(
"30000"
)
self
.
selenium
.
click
(
"//input[@id=
\
"
upload
\
"
]"
)
...
...
testUNGDocsTextEditor.py
View file @
b33dfa64
...
...
@@ -42,7 +42,7 @@ class TestUNGDocsTextEditor(UNGTestMixin):
"""test that uploading a Text Document (Open Office) with an image, as a
Web Page, will have its text and image correctly showed on fck editor"""
test_time
=
int
(
unittest
.
time
.
time
())
test_file_path
=
self
.
get_
test_
file_path
(
"ung-UNGDocs.Sample.TextWithImage.Text-001-en.odt"
)
test_file_path
=
self
.
get_file_path
(
"ung-UNGDocs.Sample.TextWithImage.Text-001-en.odt"
)
web_page_name
=
"Functional UNG Test %d - Uploaded Web Page With Image"
%
test_time
#upload document
self
.
selenium
.
click
(
"//input[@id=
\
"
upload
\
"
]"
)
...
...
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