Skip to content

Commit

Permalink
fix s2 notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
pindge committed Dec 19, 2022
1 parent f602f06 commit 6001210
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
11 changes: 9 additions & 2 deletions notebooks/Sentinel_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,16 @@
"outputs": [],
"source": [
"import sys\n",
"sys.path.insert(1, '../utils/')\n",
"sys.path.insert(1, '../utils/')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import datacube\n",
"\n",
"from utils.deafrica_datahandling import load_ard\n",
"from utils.deafrica_plotting import rgb"
]
Expand Down
10 changes: 9 additions & 1 deletion tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ def test_esri_land_cover(tb):
def test_nasadem(tb):
assert True # ok

@testbook(f'{NB_DIR}/notebooks/Sentinel_2.ipynb', execute=True, timeout=180)
@testbook(f'{NB_DIR}/notebooks/Sentinel_2.ipynb',timeout=180)
def test_sentinel_2(tb):
tb.execute_cell(1)
tb.inject(
"""
import sys
sys.path.insert(1, '/notebooks/')
"""
)
tb.execute_cell(slice(3, 10))
assert True # ok

0 comments on commit 6001210

Please sign in to comment.