title: How can I test Python Eve projections with pytest?
body: <p>I am trying to somehow do a get request to testing flask client for Eve:</p>
  
  <pre><code>@pytest.fixture(scope='session')
  def client():
      app = a.create_app()
      app.debug = True
      client = app.test_client()
      return client
  
  def animal_mes_id(client):
      #res = client.get('/my_col?where={"_name": "animal"}')
      res = client.get('/my_col', query_string={"_name": "animal"})
      print(res.data)
      return res.data......['_id'] # Schematic way to show I just want to get the _id
  </code></pre>
  
  <p>I have not been able to neither one way, or the other in following lines</p>
  
  <pre><code> #res = client.get('/my_col?where={"_name": "animal"}')
   res = client.get('/my_col', query_string={"_name": "animal"})
  </code></pre>
  
  <p>pass a  <code>--data-urlencode 'projection={"_id": 1}'</code> as it is <a href="https://docs.python-eve.org/en/stable/features.html#projections" rel="nofollow noreferrer">documented</a></p>
  
  <p>I have tried things like:</p>
  
  <pre><code>client.get('/my_col?where={"_name": "animal"} --data-urlencode \'projection={"_id": 1}\'')
  </code></pre>