title: How to keep Unit tests and Integrations tests separate in pytest
body: <p>According to <a href="https://en.wikipedia.org/wiki/Unit_testing#Description" rel="noreferrer">Wikipedia</a> and various <a href="https://techbeacon.com/devops/6-best-practices-integration-testing-continuous-integration" rel="noreferrer">articles</a> it is best practice to divide tests into Unit tests (run first) and Integration tests (run second), where Unit tests are typically very fast and should be run with every build in a CI environment, however Integration tests take longer to run and should be more of a daily run. </p>
  
  <p>Is there a way to divide these in pytest? Most projects don't seem to have multiple test folders, so is there a way to make sure I only run Unit, Integration or both according to the situtation (CI vs daily builds)? When calculating test coverage, I assume I will have to run both.</p>
  
  <p>Am I going about this the right way in attempting to divide the tests into these categories? Is there a good example somewhere of a project that has done this?</p>