def METHOD_NAME(self, clean_db, test_request_context):
    if not tests.is_datastore_supported():
        pytest.skip("Datastore not supported")
    self.dataset = factories.Dataset(
        resources=[
            {"url_type": "datastore"}
        ])
    with test_request_context():
        self.sysadmin_user = factories.User(
            name="testsysadmin", sysadmin=True
        )
        self.normal_user = factories.User(name="annafan")
    engine = db.get_write_engine()
    self.Session = orm.scoped_session(orm.sessionmaker(bind=engine))