moved stuff around

This commit is contained in:
2024-07-02 08:04:21 -05:00
parent f38a9f9df5
commit eaf229abde
11 changed files with 422 additions and 155 deletions
+20
View File
@@ -0,0 +1,20 @@
package scraper
import (
_ "embed"
"testing"
)
//go:embed testdata/tapology-search.html
var search_result []byte
func testTapologyGetter(t *testing.T) {
get_tapology_for := TapologyGetter()
PrintJSON(get_tapology_for("Dustin Poirier"))
PrintJSON(get_tapology_for("Jon Jones"))
PrintJSON(get_tapology_for("Conor Mcgregor"))
}
func TestTapologyParseFragment(t *testing.T) {
PrintJSON(parse_tapology_results(search_result))
}