Skip to content

Commit 0ffbf60

Browse files
committed
split out tests to avoid timeouts
1 parent c458743 commit 0ffbf60

File tree

5 files changed

+338
-318
lines changed

5 files changed

+338
-318
lines changed

test/run

Lines changed: 0 additions & 318 deletions
This file was deleted.

test/run-deps

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#!/usr/bin/env bash
2+
3+
# Default Python Versions
4+
# shellcheck source=bin/default_pythons
5+
source "bin/default_pythons"
6+
7+
testAirflow() {
8+
export SLUGIFY_USES_TEXT_UNIDECODE="yes"
9+
compile "airflow"
10+
assertCaptured "apache-airflow==1.10.2"
11+
assertCapturedSuccess
12+
}
13+
14+
testCollectstatic() {
15+
compile "collectstatic"
16+
assertCaptured "collectstatic"
17+
}
18+
19+
testGEOS() {
20+
export BUILD_WITH_GEO_LIBRARIES=1
21+
compile "geos"
22+
assertCaptured "geos"
23+
assertCapturedSuccess
24+
}
25+
26+
testNLTK() {
27+
# NOTE: This is a RuntimeWarning emitted by Python 3's runpy.py script
28+
# which is what is used when you call `python -m <module>`. This is due to
29+
# how nltk imports things. It's not actually an error, but it would probably
30+
# be bad to silence in Production.
31+
export PYTHONWARNINGS="ignore::RuntimeWarning"
32+
compile "nltk"
33+
assertCaptured "[nltk_data] Downloading package city_database" "STD_ERR"
34+
assertCapturedSuccess
35+
}
36+
37+
testPsycopg2() {
38+
compile "psycopg2"
39+
assertCaptured "psycopg2"
40+
assertCapturedSuccess
41+
}
42+
43+
testCffi() {
44+
compile "cffi"
45+
assertCaptured "cffi"
46+
assertCapturedSuccess
47+
}
48+
49+
testPylibmc() {
50+
compile "pylibmc"
51+
assertCaptured "pylibmc"
52+
assertCapturedSuccess
53+
}
54+
55+
pushd $(dirname 0) >/dev/null
56+
popd >/dev/null
57+
58+
source $(pwd)/test/utils
59+
source $(pwd)/test/shunit2

0 commit comments

Comments
 (0)