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

Update test dependencies #3017

Merged
merged 3 commits into from
Dec 17, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gratipay/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def setUpVCR(cls):
information, and you can commit that with your updated tests.

"""
cls.vcr_cassette = use_cassette(cls.__name__).__enter__()
cls.vcr_cassette = use_cassette(cls.__name__)
cls.vcr_cassette.__enter__()


@classmethod
Expand Down
17 changes: 0 additions & 17 deletions gratipay/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ def update_global_stats(website):
""", default=(0, 0.0))
website.gnactive = stats[0]
website.gtransfer_volume = stats[1]
website.glast_week = last_week(website.db)

nbackers = website.db.one("""
SELECT npatrons
Expand All @@ -397,22 +396,6 @@ def update_global_stats(website):
website.support_goal = goal


def last_week(db):
WEDNESDAY, THURSDAY, FRIDAY, SATURDAY = 2, 3, 4, 5
now = datetime.utcnow()
payday = db.one("SELECT ts_start, ts_end FROM paydays WHERE ts_start > ts_end")
last_week = "last week"
if now.weekday() == THURSDAY:
if payday is not None and payday.ts_end is not None and payday.ts_end.year > 1970:
# Payday is finished for today.
last_week = "today"
elif now.weekday() == FRIDAY:
last_week = "yesterday"
elif now.weekday() == SATURDAY:
last_week = "this past week"
return last_week


def _execute(this, sql, params=[]):
print(sql.strip(), params)
super(SimpleCursorBase, this).execute(sql, params)
Expand Down
18 changes: 9 additions & 9 deletions requirements_tests.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

./vendor/py-1.4.12.zip
./vendor/pytest-2.3.4.zip
./vendor/py-1.4.26.tar.gz
./vendor/pytest-2.6.4.tar.gz

./vendor/coverage-3.7.1.tar.gz
./vendor/cov-core-1.14.0.tar.gz
./vendor/pytest-cov-1.6.tar.gz
./vendor/cov-core-1.15.0.tar.gz
./vendor/pytest-cov-1.8.1.tar.gz

./vendor/execnet-1.1.zip
./vendor/pytest-cache-1.0.tar.gz
./vendor/pyflakes-0.7.3.tar.gz
./vendor/mock-0.8.0.tar.gz
./vendor/pyflakes-0.8.1.tar.gz
./vendor/mock-1.0.1.tar.gz

./vendor/PyYAML-3.11.tar.gz
./vendor/contextdecorator-0.10.0.tar.gz
./vendor/vcrpy-1.0.2.tar.gz
./vendor/contextlib2-0.4.0.tar.gz
./vendor/wrapt-1.10.2.tar.gz
./vendor/vcrpy-1.1.3.tar.gz
1 change: 1 addition & 0 deletions tests/py/test_username_json.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# coding: utf8
from __future__ import print_function, unicode_literals

import json
Expand Down
Binary file removed vendor/contextdecorator-0.10.0.tar.gz
Binary file not shown.
Binary file added vendor/contextlib2-0.4.0.tar.gz
Binary file not shown.
Binary file removed vendor/cov-core-1.14.0.tar.gz
Binary file not shown.
Binary file added vendor/cov-core-1.15.0.tar.gz
Binary file not shown.
Binary file removed vendor/execnet-1.1.zip
Binary file not shown.
Binary file removed vendor/mock-0.8.0.tar.gz
Binary file not shown.
Binary file added vendor/mock-1.0.1.tar.gz
Binary file not shown.
Binary file removed vendor/py-1.4.12.zip
Binary file not shown.
Binary file added vendor/py-1.4.26.tar.gz
Binary file not shown.
Binary file removed vendor/pyflakes-0.7.3.tar.gz
Binary file not shown.
Binary file added vendor/pyflakes-0.8.1.tar.gz
Binary file not shown.
Binary file removed vendor/pytest-2.3.4.zip
Binary file not shown.
Binary file added vendor/pytest-2.6.4.tar.gz
Binary file not shown.
Binary file removed vendor/pytest-cov-1.6.tar.gz
Binary file not shown.
Binary file added vendor/pytest-cov-1.8.1.tar.gz
Binary file not shown.
Binary file removed vendor/vcrpy-1.0.2.tar.gz
Binary file not shown.
Binary file added vendor/vcrpy-1.1.3.tar.gz
Binary file not shown.
Binary file added vendor/wrapt-1.10.2.tar.gz
Binary file not shown.