old_contents: from invocations import docs
  from invocations.testing import test
  from invocations.packaging import release
  
  from invoke import Collection
  from invoke import run
  from invoke import task
  
  
  @task(help={
      'pty': "Whether to run tests under a pseudo-tty",
  })
  def integration(pty=True):
      """Runs integration tests."""
      cmd = 'inv test -o --tests=integration'
      run(cmd + ('' if pty else ' --no-pty'), pty=pty)
  
  
  ns = Collection(test, integration, release, docs)
  
new_contents: from invocations import docs
  from invocations.testing import test, integration, watch_tests
  from invocations.packaging import release
  
  from invoke import Collection
  from invoke import run
  from invoke import task
  
  
  ns = Collection(test, integration, watch_tests, release, docs)
  ns.configure({
      'tests': {
          'package': 'releases',
      },
  })
  
subject: Use invocations' integration task, also add watch_tests