diff --git a/.travis.yml b/.travis.yml index e630188..c6f74d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,13 @@ install: - pip install -r dev-requirements.txt - pip uninstall django --yes - pip install -q django$DJANGO_VERSION + - pip install coverage==4.5.4 - pip install coveralls - pip install -e . before_script: - flake8 sparkpost test script: - - py.test --cov sparkpost test/ --cov-report term-missing + - py.test after_success: - coveralls notifications: diff --git a/sparkpost/transmissions.py b/sparkpost/transmissions.py index ef2e705..28aa46c 100644 --- a/sparkpost/transmissions.py +++ b/sparkpost/transmissions.py @@ -18,6 +18,7 @@ 'campaign': 'campaign_id', 'start_time': 'options/start_time', 'track_opens': 'options/open_tracking', + 'track_initial_opens': 'options/initial_open', 'track_clicks': 'options/click_tracking', 'transactional': 'options/transactional', 'use_sandbox': 'options/sandbox', @@ -264,6 +265,8 @@ def send(self, **kwargs): '2015-02-11T08:00:00-04:00'. :param bool track_opens: Defaults to True. Used to track opens of transmission + :param bool track_initial_opens: Used to track opens + of transmission with top pixel :param bool track_clicks: Defaults to True. Used to track clicks of transmission :param bool use_sandbox: Flag must be set to use sandbox domain instead