Skip to content

Commit

Permalink
#6022 - creating test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeilman committed Aug 10, 2023
1 parent 8d1a37c commit 7501dd2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/template/srw_resize_3d_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
"""PyTest for :mod:`sirepo.template.srw`
:copyright: Copyright (c) 2023 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
import pytest
from pykern.pkcollections import PKDict


def test_srw_resize_3d(fc):
from sirepo.template import srw
from pykern.pkdebug import pkdlog
import numpy
import os

env = PKDict(os.environ)
cfg = PKDict(
SIREPO_JOB_MAX_MESSAGE_BYTES="1e4",
)
env.pkupdate(**cfg)
pkdlog("MaX B {}", srw._MAX_MESSAGE_BYTES)
assert 0

#a = numpy.random.rand(srw._MAX_MESSAGE_BYTES)
#r = PKDict()
#srw._reshape_3d(a, [], r)


0 comments on commit 7501dd2

Please sign in to comment.