CLARIAH / grlc

grlc builds Web APIs using shared SPARQL queries
http://grlc.io
MIT License
136 stars 32 forks source link

Use patches on tests #207

Closed c-martinez closed 5 years ago

c-martinez commented 5 years ago

The test_sparql_transformer test, relies on response from dbpedia:

https://github.com/CLARIAH/grlc/blob/f5664e34f039010c00ef8ebb69917c05e8ce75d7/tests/test_gquery.py#L208-L219

This means that if you are not connected to the internet, it is not possible to run this test. One way to work around this is to use @patch (as done in test_get_enumeration test) to mock the http request.

@pasqLisena -- could you possibly have a look at this test?

pasqLisena commented 5 years ago

Hi @c-martinez . I can give a look at this next week.

c-martinez commented 5 years ago

Closed by #216