Skip to content

Commit 858331c

Browse files
committed
Ignore a certain timestamp deprecation warning in testing
Using a `pandas.Series` with Python 3.12 and pytest currently yields a warnining deprecation warning.
1 parent b884d9d commit 858331c

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

graphdatascience/tests/pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ markers =
88
only_on_aura: mark a test to be run only when targeting an AuraDS instance
99
ogb: mark a test as requiring the ogb dependency
1010
cloud_architecture: mark a test to require a cloud setup like environment
11+
filterwarnings =
12+
error
13+
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning

tox.ini

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ deps =
4848
networkx2: networkx >= 2.0, < 3.0
4949
networkx3: networkx >= 3.0, < 4.0
5050
commands =
51-
standard: bash -ec 'pytest graphdatascience/tests --include-enterprise --include-model-store-location -Werror && ruby ./doc/tests/test_docs.rb python3 -n test_enterprise && pytest ./doc/tests/test_client_only_endpoints.py -Werror'
52-
encrypted: pytest graphdatascience/tests --encrypted-only -Werror
53-
aura: pytest graphdatascience/tests --include-enterprise --target-aura -Werror
54-
ogb: pytest graphdatascience/tests --include-enterprise --include-ogb -Werror
55-
nx: bash -ec 'pytest graphdatascience/tests/*/test_nx_loader.py --include-enterprise -Werror && ruby ./doc/tests/test_docs.rb python3 -n test_networkx'
56-
cloud-architecture: pytest graphdatascience/tests --include-cloud-architecture -Werror
51+
standard: bash -ec 'pytest graphdatascience/tests --include-enterprise --include-model-store-location && ruby ./doc/tests/test_docs.rb python3 -n test_enterprise && pytest ./doc/tests/test_client_only_endpoints.py'
52+
encrypted: pytest graphdatascience/tests --encrypted-only
53+
aura: pytest graphdatascience/tests --include-enterprise --target-aura
54+
ogb: pytest graphdatascience/tests --include-enterprise --include-ogb
55+
nx: bash -ec 'pytest graphdatascience/tests/*/test_nx_loader.py --include-enterprise && ruby ./doc/tests/test_docs.rb python3 -n test_networkx'
56+
cloud-architecture: pytest graphdatascience/tests --include-cloud-architecture
5757
rm -rf {envdir}/lib
5858

5959
[testenv:jupyter-notebook-ci]

0 commit comments

Comments
 (0)