Skip to content

Commit 9145e47

Browse files
author
Jon Wayne Parrott
committed
Fix system tests, remove dependency on cloud core
1 parent 3f7210a commit 9145e47

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

monitoring/nox.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
LOCAL_DEPS = (
2323
os.path.join('..', 'api_core'),
24-
os.path.join('..', 'core'),
2524
)
2625

2726

@@ -94,7 +93,7 @@ def system(session, py):
9493
session.install('.')
9594

9695
# Run py.test against the system tests.
97-
session.run('py.test', '--quiet', 'tests/system.py')
96+
session.run('py.test', '--quiet', 'tests/system', *session.posargs)
9897

9998

10099
@nox.session

monitoring/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
# 'Development Status :: 5 - Production/Stable'
3030
release_status = 'Development Status :: 3 - Alpha'
3131
dependencies = [
32-
'google-cloud-core<0.29dev,>=0.28.0',
3332
'google-api-core[grpc]<2.0.0dev,>=0.1.1',
3433
]
3534
extras = {

monitoring/tests/unit/test__dataframe.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353

5454

5555
def parse_timestamps():
56-
import datetime
57-
from google.cloud._helpers import _RFC3339_MICROS
56+
from google.api_core import datetime_helpers
5857

59-
return [datetime.datetime.strptime(t, _RFC3339_MICROS)
60-
for t in TIMESTAMPS]
58+
return [
59+
datetime_helpers.from_rfc3339(t).replace(tzinfo=None)
60+
for t in TIMESTAMPS]
6161

6262

6363
def generate_query_results():

0 commit comments

Comments
 (0)