geocoders / geocoder-tester

Run search queries against a geocoder that supports geocodejson spec.
Other
40 stars 23 forks source link

use indirect constructor for pytest nodes #51

Closed lonvia closed 4 years ago

lonvia commented 4 years ago

Avoids deprecation warning of the kind:

conftest.py:19: PytestDeprecationWarning: direct construction of YamlFile has been deprecated, please use YamlFile.from_parent
    f = YamlFile(path, parent)

The docs of pytest are not really helpful on how to use from_parent(). I hope I got it right.