Commit b33dfa64 authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Rename method, so that unittest module doesn't recognize it as a test

parent 869b56b3
......@@ -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)
......
......@@ -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 = self.get_test_file_path("tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods")
test_file_path = sef.get_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 = self.get_test_file_path("tiolive-ERP5.Freedom.TioLive.Spreadsheet-001-en.ods")
test_file_path = sef.get_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\"]")
......
......@@ -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\"]")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment