Skip to content

Commit

Permalink
fixed df in test_column_names
Browse files Browse the repository at this point in the history
  • Loading branch information
am-tropin committed Nov 17, 2023
1 parent 22100d6 commit 33df2e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"# )\n",
"\n",
"@pytest.mark.mandatory\n",
"def test_column_names(df):\n",
"def test_column_names(grab_test_file):\n",
" required_names = {'floor', 'rooms', 'city', 'district', 'radius'}\n",
" dt.validate(grab_test_file.columns, required_names)\n",
"# https://github.com/shawnbrown/datatest/blob/bf136eab23c2b6ea36c201e1446fca9243c3fba6/docs/intro/automated-testing.rst#L139\n"
Expand Down Expand Up @@ -188,7 +188,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f9990793",
"id": "59add23f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -202,23 +202,23 @@
{
"cell_type": "code",
"execution_count": null,
"id": "13c848b0",
"id": "d156ca82",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "5ffd885b",
"id": "c2cb977c",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "f55a4b8f",
"id": "55ee66be",
"metadata": {},
"outputs": [],
"source": []
Expand Down
10 changes: 5 additions & 5 deletions app/tests/test_function_store.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"# )\n",
"\n",
"@pytest.mark.mandatory\n",
"def test_column_names(df):\n",
"def test_column_names(grab_test_file):\n",
" required_names = {'floor', 'rooms', 'city', 'district', 'radius'}\n",
" dt.validate(grab_test_file.columns, required_names)\n",
"# https://github.com/shawnbrown/datatest/blob/bf136eab23c2b6ea36c201e1446fca9243c3fba6/docs/intro/automated-testing.rst#L139\n"
Expand Down Expand Up @@ -188,7 +188,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f9990793",
"id": "59add23f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -202,23 +202,23 @@
{
"cell_type": "code",
"execution_count": null,
"id": "13c848b0",
"id": "d156ca82",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "5ffd885b",
"id": "c2cb977c",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "f55a4b8f",
"id": "55ee66be",
"metadata": {},
"outputs": [],
"source": []
Expand Down
2 changes: 1 addition & 1 deletion app/tests/test_function_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def grab_test_file():
# )

@pytest.mark.mandatory
def test_column_names(df):
def test_column_names(grab_test_file):
required_names = {'floor', 'rooms', 'city', 'district', 'radius'}
dt.validate(grab_test_file.columns, required_names)
# https://github.com/shawnbrown/datatest/blob/bf136eab23c2b6ea36c201e1446fca9243c3fba6/docs/intro/automated-testing.rst#L139
Expand Down

0 comments on commit 33df2e0

Please sign in to comment.