#!/bin/bash

export ENV=qa
export FRESHNESS_TIMEOUT=15
export FRIDAY=next
export MARKET=GB

#export PLAYLISTS='37i9dQZF1DWVlYsZJXqdym,37i9dQZF1DWYkaDif7Ztbp,37i9dQZF1DWVtgG63SDdt8,37i9dQZF1DWVn8zvR5ROMB,37i9dQZF1DXa41CMuUARjl,37i9dQZF1DXe5W6diBL5N4,37i9dQZF1DX1hVRardJ30X,37i9dQZF1DWVqJMsgEN0F4,37i9dQZF1DWT8aqnwgRt92,37i9dQZF1DWX3387IZmjNa,37i9dQZF1DWY7IeIP1cdjF,37i9dQZF1DX4pq3ejIlJu2,37i9dQZF1DX5Vy6DFOcx00,37i9dQZF1DWXtlo6ENS92N,37i9dQZF1DXdpQPPZq3F7n,37i9dQZF1DWYYeOy9vs7I5,37i9dQZF1DXdGDdHXKDLuQ,37i9dQZF1DWXLeA8Omikj7,37i9dQZF1DWVPKP49DU8tu,37i9dQZF1DWSJHnPb1f0X3'
#export PLAYLISTS='37i9dQZF1DX4WYpdgoIcn6, 37i9dQZF1DWTwnEm1IYyoj'

rm -r test_results || true
	mkdir "test_results"

rm automation.log || true

#pytest app/src/tests/insights/playlist_freshness/test_spotify_playlist_freshness.py --report=test_results/report.html --template=html1/index.html -s --rootdir=app
#pytest app/src/tests/insights/test_nmf_by_date.py --report=test_results/report.html --template=html1/index.html -s --rootdir=app
pytest app/src/tests/insights/playlist_freshness/test_nmf_playlist_freshness.py  --report=test_results/report.html --template=html1/index.html -s --rootdir=app
