Skip to content

chore: Add python integrations tests for aliases #212

@petern48

Description

@petern48

We didn't have python integration tests when we originally added aliases. We should add some sort of tests to ensure python can call them.

At the moment, we test only one version. In this case below, we actually test the alias and not the original function ST_GeomFromWKT anywhere.

def test_st_geomfromtext(eng, wkt, expected):

Options I see:

  1. Parametrize the existing test functions so all aliases are called for the entire test suite of that function
@pytest.mark.parametrize(func_name, ["ST_GeomFromText", "ST_GeomFromWKT"])
...
def test_st_geomfromwkt()
  1. Add some separate tests, just make sure the aliases are working
def test_st_geomfromtext_alias()
      # < a single query > 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions