Skip to content

Commit

Permalink
Merge 030705c into 0c0941f
Browse files Browse the repository at this point in the history
  • Loading branch information
jcampbell committed Apr 15, 2019
2 parents 0c0941f + 030705c commit 10d81d3
Show file tree
Hide file tree
Showing 52 changed files with 193 additions and 371 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ env:
- PANDAS=0.21.0
- PANDAS=0.23.4
- PANDAS=latest
services:
- postgresql
install:
- pip install --only-binary=numpy,scipy numpy scipy
- if [ "$PANDAS" = "latest" ]; then pip install pandas; else pip install pandas==$PANDAS; fi
- pip install -r requirements-dev.txt
before_script:
- psql -c 'create database test_ci;' -U postgres
script:
- pytest --cov=great_expectations tests/
after_success:
Expand Down
2 changes: 1 addition & 1 deletion great_expectations/dataset/sqlalchemy_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def expect_column_median_to_be_between(self,
element_values = self.engine.execute(
sa.select([sa.column(column)]).order_by(sa.column(column)).where(
sa.column(column) != None
).offset(nonnull_count // 2 - 1).limit(2).select_from(self._table)
).offset(max(nonnull_count // 2 - 1, 0)).limit(2).select_from(self._table)
)

column_values = list(element_values.fetchall())
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ pypandoc>=1.4
pytest>=4.1.1
pytest-cov>=2.6.1
coveralls>=1.3
psycopg2>=2.8.1

This file was deleted.

Empty file.
68 changes: 0 additions & 68 deletions tests/column_map_expectations/test_column_map_expectations.py

This file was deleted.

Empty file.

This file was deleted.

Empty file.

This file was deleted.

Empty file.
65 changes: 0 additions & 65 deletions tests/other_expectations/test_other_expectations.py

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
"zzz" : "varchar",
"a" : "int",
"b" : "int"
},
"postgresql": {
"w" : "int",
"x" : "int",
"y" : "int",
"z" : "text",
"zz" : "timestamp",
"zzz" : "text",
"a" : "int",
"b" : "int"
}
},
"tests" : [{
Expand Down

0 comments on commit 10d81d3

Please sign in to comment.