This repository has been archived by the owner on Jan 11, 2018. It is now read-only.
forked from d3ming/tagcompare
-
Notifications
You must be signed in to change notification settings - Fork 3
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
tmillner
committed
Dec 28, 2015
1 parent
76555c4
commit 2697c7f
Showing
2 changed files
with
37 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -17,7 +17,8 @@ | |
}, | ||
"types": { | ||
"iframe": true, | ||
"script": false | ||
"script": false, | ||
"preview": false | ||
} | ||
}, | ||
"saucelabs": { | ||
|
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,35 @@ | ||
import os | ||
|
||
import pytest | ||
|
||
from tagcompare import capture | ||
from tagcompare import settings | ||
from tagcompare import output | ||
|
||
|
||
SETTINGS = settings.Settings(configfile='test/assets/test_settings.json', | ||
comparefile='test/assets/test_compare.json') | ||
|
||
|
||
@pytest.mark.integration | ||
def test_capture_configs(): | ||
""" | ||
def __capture_tags_for_configs(cids, pathbuilder, configs=settings.DEFAULT.configs, | ||
comparisons=settings.DEFAULT.comparisons): | ||
:return: | ||
""" | ||
cids = [477944] | ||
configs = SETTINGS.configs | ||
comparisons = { | ||
"test": ["chrome", "firefox"] | ||
} | ||
adsizes = ["medium_rectangle"] | ||
adtypes = ["iframe", "preview"] | ||
|
||
pb = output.create(build="capture_test") | ||
errors = capture.__capture_tags_for_configs(cids=cids, pathbuilder=pb, | ||
configs=configs, comparisons=comparisons, | ||
tagsizes=adsizes, tagtypes=adtypes, | ||
capture_existing=True) | ||
assert errors, "There should be at least one error!" | ||
pb.rmbuild() |