Skip to content

Commit 83ec4d3

Browse files
committed
chore: setup and teardown for Python
1 parent 44d7b1a commit 83ec4d3

File tree

1 file changed

+14
-1
lines changed
  • sources/academy/webscraping/scraping_basics_python/exercises

1 file changed

+14
-1
lines changed

sources/academy/webscraping/scraping_basics_python/exercises/test.bats

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1-
setup() {
1+
setup_file() {
22
cd "$BATS_TEST_DIRNAME"
33
}
44

5+
teardown_file() {
6+
rm -rf storage dataset.json
7+
}
8+
9+
# retry_run() {
10+
# for attempt in 1 2 3; do
11+
# run "$@"
12+
# (( status == 0 )) && return 0
13+
# sleep 1
14+
# done
15+
# return "$status"
16+
# }
17+
518
@test "outputs the HTML with Star Wars products" {
619
run uv run --with=httpx python lego.py
720
[[ "$output" == *"Millennium Falcon"* ]]

0 commit comments

Comments
 (0)