def test_create_schema(tmpdir):
    db_path = os.path.join(tmpdir.strpath, 'db.db')

    with sqlite3.connect(db_path) as db:
        create_schema(db)

        results = db.execute(
            "SELECT name FROM sqlite_master WHERE type = 'table'"
        ).fetchall()
        table_names = [table_name for table_name, in results]

        assert table_names in 'metric_names'
        assert 'metric_data' in table_names
dataset/ETHPy150Open Yelp/git-code-debt/tests/create_tables_test.py/test_create_schema/swapped operands of `in`