Skip to content

Commit

Permalink
Merge feac5b8 into 93fd371
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanth-sams committed Sep 12, 2020
2 parents 93fd371 + feac5b8 commit bdeb1a9
Show file tree
Hide file tree
Showing 21 changed files with 58 additions and 40 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
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
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
==========

0.1.9 (12/09/2020)
-------------------
-

0.1.8 (12/09/2020)
-------------------
- Replaced report path CLI
Expand Down
Binary file removed PHR.png
Binary file not shown.
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ pytest-html-reporter
:target: https://travis-ci.com/prashanth-sams/pytest-html-reporter
:alt: Build Status

.. image:: https://coveralls.io/repos/github/prashanth-sams/pytest-html-reporter/badge.svg?branch=refactor
:target: https://coveralls.io/github/prashanth-sams/pytest-html-reporter?branch=refactor

.. image:: https://pepy.tech/badge/pytest-html-reporter
:target: https://pepy.tech/project/pytest-html-reporter
:alt: Downloads
Expand Down Expand Up @@ -106,4 +109,4 @@ Is there a demo available for this gem?

Yes, you can use this demo as an example, https://github.com/prashanth-sams/pytest-html-reporter::

$ pytest tests/
$ pytest tests/functional/
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
coverage
pytest
pytest-cov
selenium
coveralls
PyYAML
selenium
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read(fname):

setup(
name="pytest-html-reporter",
version="0.1.8",
version="0.1.9",
author="Prashanth Sams",
author_email="sams.prashanth@gmail.com",
maintainer="Prashanth Sams",
Expand Down
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.
13 changes: 13 additions & 0 deletions tests/unit/test_html_template.py
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
33 changes: 33 additions & 0 deletions tests/unit/test_time_converter.py
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")
31 changes: 0 additions & 31 deletions unittests/test_autouse.py

This file was deleted.

0 comments on commit bdeb1a9

Please sign in to comment.