Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit b98043f

Browse files
committed
fixed test
1 parent 8e6d543 commit b98043f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/system/v2_client/test_data_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from datetime import datetime, timezone
15+
from datetime import datetime, timedelta, timezone
1616
import operator
1717

1818
import pytest
@@ -62,8 +62,8 @@ def rows_to_delete():
6262
def test_table_read_rows_filter_millis(data_table):
6363
from google.cloud.bigtable import row_filters
6464

65-
end = datetime.datetime.now()
66-
start = end - datetime.timedelta(minutes=60)
65+
end = datetime.now()
66+
start = end - timedelta(minutes=60)
6767
timestamp_range = row_filters.TimestampRange(start=start, end=end)
6868
timefilter = row_filters.TimestampRangeFilter(timestamp_range)
6969
row_data = data_table.read_rows(filter_=timefilter)
@@ -241,11 +241,11 @@ def _write_to_row(row1, row2, row3, row4):
241241
timestamp1_micros -= timestamp1_micros % 1000
242242
timestamp1 = _datetime_from_microseconds(timestamp1_micros)
243243
# 1000 microseconds is a millisecond
244-
timestamp2 = timestamp1 + datetime.timedelta(microseconds=1000)
244+
timestamp2 = timestamp1 + timedelta(microseconds=1000)
245245
timestamp2_micros = _microseconds_from_datetime(timestamp2)
246-
timestamp3 = timestamp1 + datetime.timedelta(microseconds=2000)
246+
timestamp3 = timestamp1 + timedelta(microseconds=2000)
247247
timestamp3_micros = _microseconds_from_datetime(timestamp3)
248-
timestamp4 = timestamp1 + datetime.timedelta(microseconds=3000)
248+
timestamp4 = timestamp1 + timedelta(microseconds=3000)
249249
timestamp4_micros = _microseconds_from_datetime(timestamp4)
250250

251251
if row1 is not None:

0 commit comments

Comments
 (0)