Skip to content

Commit

Permalink
test: remove integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjohnward committed May 12, 2020
1 parent 5b3da0e commit e7ca176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
script: pytest --cov-report xml --cov-report term
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- stage: integration
script:
- grocer wegmans times

stages:
- name: test
- name: integration
if: branch = master
5 changes: 4 additions & 1 deletion grocer/utils/browser_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
BROWSER_REGISTRY = {}


def get_browser(merchant, headless=False):
def get_browser(merchant, headless=False, no_sandbox=False):
# TODO support multiple concurrent users
if merchant in BROWSER_REGISTRY:
return BROWSER_REGISTRY[merchant]
opts = Options()
if headless:
opts.set_headless()
if no_sandbox:
opts.add_argument("--no-sandbox")
opts.add_argument("--disable-dev-shm-usage")
browser = Chrome(os.environ["CHROMEDRIVER_PATH"], options=opts)
# save the browser instance in a registry so it can be re-used
BROWSER_REGISTRY[merchant] = browser
Expand Down

0 comments on commit e7ca176

Please sign in to comment.