From d3595eeb2a7e172f39709ec07125fb1ef1e18054 Mon Sep 17 00:00:00 2001 From: ayaanqui Date: Mon, 29 Apr 2024 09:54:24 -0500 Subject: [PATCH] test: attach location image to struct --- tests/img.png | Bin 0 -> 28707 bytes tests/scheduling_test.go | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/img.png diff --git a/tests/img.png b/tests/img.png new file mode 100644 index 0000000000000000000000000000000000000000..5c273c7bef7aabe2b653d3a2c3c479888ee51d23 GIT binary patch literal 28707 zcmeGDWmjBLvo#FwZrpl$St5CPW4R08L6#Oc?;c&`U6Y2oL?bcAtKPeu12o zB}9PoG2#ONAP1zxzNotEAEzUvsfyS4cPuq|U80i1|DgPZ8c1&6GVJ zP9uGNIL}pH7Y9=d|IaXF0K>yU@*YzoXh2xx{~6*CFa*XQRub}`!7K>@cm7Bpqm2cS zqW?4CfPw$JLehlJAaH!?aVOJpGO|E{nq$w9~fiYsrb?Ee|U0f=G#pUE#^902$D zJ6H1m8KDQb;s4j1Wakf9dVqQUz~;mMnnO|q98mwqFj6!G4m#7UoLVsb-y6ls0@m^W z=a!*!6zHtdu%Kq>|BMKOIywH=Lt!v3wJ^xAOWq<@>VJHKx&$%#zpMW`_}@49-z5qS zzW>JH|E9J7CYk?c(f@7}|J~^STgm*VkTU#lsrLV0i)sczC|K0q5G3=Mr);?5U}vTN zQ!)R9mCPEzt|WjM0T&AsZw;Pl^JeiTP3qN5fy>&@Mf>@NYTQHn25n> zs6>Q4zAeF(LlExJR;gZNE@nNWp5+J9R-u8P?jPV1VI*C<53Oqmq;14Z9D8G>{=`rU zqt2gjH4?kd+rnd|Uy$p~Qax{oPzZw*=>@v>pyl%*pTF30r=`S`4P_|vfBlws$=KDP|S<{B*(-U=Dz)dld4N5rcB)y-Fe+7thlx|3>@LGh7~G1F#~P-ZxXq z{4ZnttvqKsjcMrfwp=#?`qUGc&=Q9C2jiI(n0mqtc6(F^i<8~(C%0XuE?O#8pz7j< zy&guqB#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n$do%x**}re*-){DAYyRhF{yEKm izcc?|{>|RtiBlsmv@L;eTnMNB0W_ZIs@1AmNBkdAjIQGV literal 0 HcmV?d00001 diff --git a/tests/scheduling_test.go b/tests/scheduling_test.go index f6b04fa..fd40b4a 100644 --- a/tests/scheduling_test.go +++ b/tests/scheduling_test.go @@ -2,9 +2,11 @@ package tests import ( "fmt" + "os" "testing" "time" + "github.com/99designs/gqlgen/graphql" "github.com/stadio-app/stadio-backend/database/jet/postgres/public/model" "github.com/stadio-app/stadio-backend/graph/gmodel" ) @@ -60,6 +62,11 @@ func TestLocation(t *testing.T) { } var location gmodel.Location + file, err := os.Open("./img.png") + if err != nil { + t.Fatal(err) + } + t.Run("create location", func(t *testing.T) { input := gmodel.CreateLocation{ Name: "My Soccer Field", @@ -77,6 +84,16 @@ func TestLocation(t *testing.T) { Instances: []*gmodel.CreateLocationInstance{ {Name: "Field #1"}, }, + Images: []*gmodel.CreateLocationImage{ + { + File: graphql.Upload{ + File: file, + Filename: file.Name(), + ContentType: "image/png", + }, + Default: true, + }, + }, } if location, err = service.CreateLocation(ctx, &user, input); err != nil { t.Fatal(err.Error()) @@ -333,6 +350,16 @@ func TestLocation(t *testing.T) { }, Schedule: init_schedule(7, 20, true), // 7am - 8pm Instances: init_location_instances(num_instances), + Images: []*gmodel.CreateLocationImage{ + { + File: graphql.Upload{ + File: file, + Filename: file.Name(), + ContentType: "image/png", + }, + Default: true, + }, + }, }) if err != nil { t.Fatal("could not create complex location")