File: test_baz.py

package info (click to toggle)
python-mashumaro 3.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,408 kB
  • sloc: python: 19,981; sh: 16; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import annotations

from dataclasses import dataclass

from .test_foobar import Bar, Foo


@dataclass
class Baz(Foo[int]):
    pass


def test_class_with_base_in_another_module():
    assert Bar(x=1).to_json() == '{"x": 1}'
    assert Baz(x=1).to_json() == '{"x": 1}'