File: test_sphere.py

package info (click to toggle)
apbs 3.4.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 199,188 kB
  • sloc: ansic: 284,988; cpp: 60,416; fortran: 44,896; xml: 13,895; sh: 13,838; python: 8,105; yacc: 2,922; makefile: 1,428; f90: 989; objc: 448; lex: 294; awk: 266; sed: 205; java: 134; csh: 79
file content (12 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
from apbs.geometry import Sphere
from apbs.geometry import Surface
import pytest


class TestSphere:
    @pytest.mark.skip(reason="Needs to be implemented.")
    @pytest.mark.parametrize(
        "npoints,expected", [(1e2, 0.0), (1e4, 0.0), (1e6, 0.0)]
    )
    def test_spherical_distribution(self, npoints, expected):
        sut: Surface = Sphere.spherical_distribution(npoints)