Skip to content

Commit

Permalink
Merge pull request #103 from neetjn/0.2.3
Browse files Browse the repository at this point in the history
0.2.3
  • Loading branch information
neetjn committed Apr 30, 2018
2 parents f4b783a + ca23758 commit 24906e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
# built documents.
#
# The short X.Y version.
version = u'0.2.2'
version = u'0.2.3'
# The full version, including alpha/beta/rc tags.
release = u'0.2.2'
release = u'0.2.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
5 changes: 3 additions & 2 deletions pyscc/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import os
import logging as logger
import time
import io
from string import Template
from types import MethodType

Expand Down Expand Up @@ -280,7 +281,7 @@ def browser_logs(self, name=None, path=None):
:Warning: `self.js.console_logger` must be executed to store logs.
:param name: Name log file dropped to disk, will default to timestamp if not specified.
:type name: string
:param path: Path to drop conole log in.
:param path: Path to drop console log in.
:type path: string
:return: string
"""
Expand All @@ -290,7 +291,7 @@ def browser_logs(self, name=None, path=None):
timestamp = str(int(time.time()))
log_path = '%sconsole.%s.json' % (path, ('%s.%s' % (name, timestamp)) if \
name else timestamp)
with open(log_path, 'a') as logfile:
with io.open(log_path, 'a', encoding='utf-8') as logfile:
logfile.write(self.js.console_dump())
return log_path
except WebDriverException:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
setup(
name='pyscc',
description='py-component-controller is an opinionated framework for structuring selenium test suites. This project depends on the pyselenium-js project.',
version='0.2.2',
version='0.2.3',
url='https://neetjn.github.io/py-component-controller/',
author='John Nolette',
author_email='john@neetgroup.net',
Expand Down

0 comments on commit 24906e6

Please sign in to comment.