title: How to parametrize Hypothesis strategy in @given
body: <p>I'm testing a REST API, which can process different requests, e.g., dated and dateless. A request has a field called <code>request_type</code>. I'm wondering what's the best way to write test in hypothesis:</p>
  
  <p>I can write two testes, one for dated, and the other is for dateless.</p>
  
  <p>But for a common property, can I write one test which combine with <code>pytest.mark.parametrize</code>. The problem is how the request strategy uses that parameter <code>req_type</code> in <code>@given</code>.</p>
  
  <pre><code>@pytest.mark.parameterize('req_type', ['dated', 'dateless'])
  @given(req=requests())
  def test_process_request(req, req_type):
     # override the parameter req_type in req with input req_type
     pass
  </code></pre>
  
  <p>Is there a way to parametrize like <code>@given(req=requests(req_type))</code>? Or shall I just generate requests with dated and dateless randomly and pass into the test?</p>