File: test_testing.py

package info (click to toggle)
python-uhi 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 404 kB
  • sloc: python: 2,210; makefile: 12
file content (35 lines) | stat: -rw-r--r-- 808 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from __future__ import annotations

import boost_histogram as bh

import uhi.testing.indexing


class TestAccess1D(uhi.testing.indexing.Indexing1D[bh.Histogram]):
    @classmethod
    def make_histogram(cls) -> bh.Histogram:
        return bh.Histogram(dict(cls.get_uhi()))


class TestAccess2D(uhi.testing.indexing.Indexing2D[bh.Histogram]):
    @classmethod
    def make_histogram(cls) -> bh.Histogram:
        return bh.Histogram(dict(cls.get_uhi()))


class TestAccess3D(uhi.testing.indexing.Indexing3D[bh.Histogram]):
    @classmethod
    def make_histogram(cls) -> bh.Histogram:
        return bh.Histogram(dict(cls.get_uhi()))


class TestAccessBHTag1D(TestAccess1D):
    tag = bh.tag


class TestAccessBHTag2D(TestAccess2D):
    tag = bh.tag


class TestAccessBHTag3D(TestAccess3D):
    tag = bh.tag