Skip to content

Commit 07f1ce3

Browse files
author
maxime.c
committed
add test to validate lib version
1 parent 7ec2767 commit 07f1ce3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

airbyte_cdk/sources/streams/http/http_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import logging
66
import os
7-
import sqlite3
87
import urllib
98
from pathlib import Path
109
from typing import Any, Callable, Dict, List, Mapping, Optional, Tuple, Union
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import requests_cache
2+
3+
4+
def test_assert_requests_cache_version():
5+
"""
6+
We need to be alerted once the requests_cache version is updated. The reason is that we monkey patch one of the
7+
method in order to fix a bug until a new version is released.
8+
9+
For more information about the reasons of this test, see monkey_patched_get_item in http_client.py
10+
"""
11+
assert requests_cache.__version__ == "1.2.1"

0 commit comments

Comments
 (0)