mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Use universal time when testing encoding/decoding of time values
This commit is contained in:
parent
f0849c855a
commit
5ef71de62b
3 changed files with 9 additions and 4 deletions
|
@ -45,6 +45,8 @@ script:
|
|||
# Build variables for zmq
|
||||
- export CFLAGS=-I${TRAVIS_BUILD_DIR}/include
|
||||
- export LDFLAGS=-L${TRAVIS_BUILD_DIR}/lib
|
||||
# For consistency with time encoding/decoding tests
|
||||
- export TZ=UTC0
|
||||
# Ensure Jupyter runtime dir can be written to
|
||||
- mkdir -p $(jupyter --runtime-dir)
|
||||
- jupyter --runtime-dir
|
||||
|
|
3
Makefile
3
Makefile
|
@ -16,6 +16,9 @@ ifneq ($(PATTERN),)
|
|||
override PATTERN := -p $(PATTERN)
|
||||
endif
|
||||
|
||||
# For consistency with time encoding/decoding tests
|
||||
export TZ=UTC0
|
||||
|
||||
.PHONY: all
|
||||
all: compile
|
||||
|
||||
|
|
|
@ -243,13 +243,13 @@
|
|||
(should (equal (jupyter--encode-time '(23385 27704 100000))
|
||||
"2018-07-26T06:37:44.100000"))
|
||||
(should (equal (jupyter--decode-time "2018-07-26T01:37:44.100")
|
||||
'(23385 27704 100000 0)))
|
||||
'(23385 9704 100000 0)))
|
||||
(should (equal (jupyter--decode-time "2018-07-26T01:37:44.10011122")
|
||||
'(23385 27704 100111 0)))
|
||||
'(23385 9704 100111 0)))
|
||||
(should (equal (jupyter--decode-time "2018-07-26T01:37:44")
|
||||
'(23385 27704 0 0)))
|
||||
'(23385 9704 0 0)))
|
||||
(should (equal (jupyter--decode-time "2018-07-26")
|
||||
'(23385 21840 0 0))))
|
||||
'(23385 3840 0 0))))
|
||||
(ert-info ("Signing messages")
|
||||
(let ((session (jupyter-session :key "foo"))
|
||||
(msg (list "" "{\"msg_id\":\"1\",\"msg_type\":\"execute_reply\"}" "{}" "{}" "{}"))
|
||||
|
|
Loading…
Add table
Reference in a new issue