Skip to content

Commit

Permalink
feat: fix random seed for testing;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Dec 2, 2023
1 parent efca871 commit 4ec87f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/global_test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

from pypots.data.generating import gene_random_walk
from pypots.utils.logging import logger
from pypots.utils.random import set_random_seed

set_random_seed(2023)

# Generate the unified data for testing and cache it first, DATA here is a singleton
# Otherwise, file lock will cause bug if running test parallely with pytest-xdist.
Expand Down

0 comments on commit 4ec87f8

Please sign in to comment.