FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
xarray-array-testing/xarray_array_testing/creation.py at main · xarray-contrib/xarray-array-testing · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
xarray-contrib
/
xarray-array-testing
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
1
Code
Issues
2
Pull requests
5
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
xarray-array-testing
/
xarray_array_testing
/
creation.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (9 loc) · 428 Bytes
Breadcrumbs
xarray-array-testing
/
xarray_array_testing
/
creation.py
Copy path
File metadata and controls
13 lines (9 loc) · 428 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
import
hypothesis
.
strategies
as
st
import
xarray
.
testing
.
strategies
as
xrst
from
hypothesis
import
given
from
xarray_array_testing
.
base
import
DuckArrayTestMixin
class
CreationTests
(
DuckArrayTestMixin
):
@
given
(
st
.
data
())
def
test_create_variable
(
self
,
data
):
variable
=
data
.
draw
(
xrst
.
variables
(
array_strategy_fn
=
self
.
array_strategy_fn
))
assert
isinstance
(
variable
.
data
,
self
.
array_type
(
"__init__"
))
Back
|
FazBrowse Home
|
New Git URL