Skip to content
This repository has been archived by the owner on Jan 11, 2018. It is now read-only.

Commit

Permalink
Add preview tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmillner committed Dec 28, 2015
1 parent 76555c4 commit 2697c7f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tagcompare/test/assets/test_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"types": {
"iframe": true,
"script": false
"script": false,
"preview": false
}
},
"saucelabs": {
Expand Down
35 changes: 35 additions & 0 deletions tagcompare/test/test_preview.py
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()

0 comments on commit 2697c7f

Please sign in to comment.