Skip to content

Commit

Permalink
Fix test for case-sensitive properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Jul 6, 2024
1 parent 5a6a10c commit c36951f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/service/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type FeatureCollection struct {
}

const urlBase = "http://test"

var basePath = "/pg_featureserv"

var catalogMock *data.CatalogMock
Expand Down Expand Up @@ -319,10 +320,9 @@ func TestBBoxInvalid(t *testing.T) {

func TestProperties(t *testing.T) {
// Tests:
// - property names are non-case-sensitive
// - names are made unique (properties only include once)
// - non-existing names are ignored
rr := doRequest(t, "/collections/mock_a/items?limit=2&properties=PROP_A,prop_C,prop_a,not_prop")
rr := doRequest(t, "/collections/mock_a/items?limit=2&properties=PROP_A,prop_c,prop_a,not_prop")

var v FeatureCollection
errUnMarsh := json.Unmarshal(readBody(rr), &v)
Expand Down Expand Up @@ -398,7 +398,7 @@ func TestFunctionMissingItemsNotFound(t *testing.T) {
doRequestStatus(t, "/functions/missing/items", http.StatusNotFound)
}

//============ Test HTML generation
// ============ Test HTML generation
// For now these just test that the template executes correctly
// correctness/completess of HTML is not tested
func TestHTMLRoot(t *testing.T) {
Expand Down

0 comments on commit c36951f

Please sign in to comment.