-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
58 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: python | ||
python: | ||
- "3.8" | ||
install: pip install coveralls pytest-cov | ||
script: py.test --cov ./pytest_html_reporter/ unittests/ | ||
install: pip install pytest pytest-cov coveralls Pillow | ||
script: py.test --cov ./pytest_html_reporter/ tests/unit/ | ||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
coverage | ||
pytest | ||
pytest-cov | ||
selenium | ||
coveralls | ||
PyYAML | ||
selenium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import sys | ||
import os | ||
|
||
myPath = os.path.dirname(os.path.abspath(__file__)) | ||
sys.path.insert(0, myPath + '/../../') | ||
from pytest_html_reporter.template import html_template | ||
|
||
|
||
def test_html_template(): | ||
if "".__eq__(html_template()): | ||
raise Exception("invalid method: html_template") | ||
else: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import sys | ||
import os | ||
|
||
myPath = os.path.dirname(os.path.abspath(__file__)) | ||
sys.path.insert(0, myPath + '/../../') | ||
from pytest_html_reporter.time_converter import * | ||
import datetime | ||
|
||
|
||
def test_time_converter(): | ||
if time_converter("18:31") == '6:31 pm': | ||
pass | ||
else: | ||
raise Exception("invalid method: time_converter") | ||
|
||
|
||
def test_clamp_to_twelve(): | ||
time_dt = datetime.datetime(1900, 1, 1, 18, 40) | ||
midday_dt = datetime.datetime(1900, 1, 1, 12, 0) | ||
|
||
if clamp_to_twelve(time_dt, midday_dt) == [6, 40]: | ||
pass | ||
else: | ||
raise Exception("invalid method: clamp_to_twelve") | ||
|
||
|
||
def test_is_midnight(): | ||
time_dt = datetime.datetime(1900, 1, 1, 18, 40) | ||
|
||
if not is_midnight(time_dt): | ||
pass | ||
else: | ||
raise Exception("invalid method: is_midnight") |
This file was deleted.
Oops, something went wrong.