Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Switch to Pipenv and fix a few isort issues (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
davehunt authored and jrbenny35 committed Feb 23, 2018
1 parent d8fc35b commit f3bf244
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var/
.installed.cfg
*.egg
.DS_Store
Pipfile.lock

# PyInstaller
# Usually these files are written by a python script from a template
Expand All @@ -45,6 +46,7 @@ htmlcov/
nosetests.xml
coverage.xml
*,cover
.pytest_cache

# Translations
*.mo
Expand Down
21 changes: 21 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[packages]

selenium = "==3.9.0"


[dev-packages]

coveralls = "==1.2.0"
flake8 = "==3.5.0"
flake8-docstrings = "==1.3.0"
flake8-isort = "==2.3"
pytest = "==3.4.0"
pytest-cov = "==2.5.1"
pytest-selenium = "==1.11.4"
2 changes: 2 additions & 0 deletions pyup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requirements:
- Pipfile
3 changes: 0 additions & 3 deletions requirements/coverage.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements/flake8.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements/tests.txt

This file was deleted.

1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""Configuration files for pytest."""

import pytest

from foxpuppet import FoxPuppet


Expand Down
3 changes: 1 addition & 2 deletions tests/test_browser_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
# You can obtain one at http://mozilla.org/MPL/2.0/.
"""Tests for the browser model API."""

from selenium.webdriver.support.wait import WebDriverWait

import pytest
from selenium.webdriver.support.wait import WebDriverWait


def test_initial_browser_window(foxpuppet):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""Tests for the notifications API."""

import pytest
from selenium.common.exceptions import TimeoutException

import pytest
from foxpuppet.windows.browser.notifications import BaseNotification
from foxpuppet.windows.browser.notifications.addons import ( # noqa: I001
AddOnInstallBlocked, # noqa: I001
Expand Down
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ envlist = py{27,36}, flake8, docs
[testenv]
recreate = True
passenv = DISPLAY MOZ_HEADLESS TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = -rrequirements/coverage.txt
deps = pipenv
commands =
pytest --driver=Firefox --cov --html=results/{envname}.html {posargs}
pipenv install --dev --skip-lock
pipenv run pytest --driver Firefox --cov --html results/{envname}.html {posargs}
coveralls

[testenv:docs]
Expand All @@ -15,8 +16,9 @@ deps = sphinx
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:flake8]
deps = -rrequirements/flake8.txt
commands = flake8 {posargs:.}
commands =
pipenv install --dev --skip-lock
pipenv run flake8 {posargs:.}

[flake8]
exclude = .eggs,.tox,docs
Expand Down

0 comments on commit f3bf244

Please sign in to comment.