Skip to content

Commit

Permalink
enhancement: add tests.dicts.common.collect_data to load input data a…
Browse files Browse the repository at this point in the history
…utomatically
  • Loading branch information
ssato committed Apr 27, 2024
1 parent 59f81d3 commit 4bbfc54
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/dicts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,18 @@
# SPDX-License-Identifier: MIT
#
# pylint: disable=missing-docstring
import pathlib
import unittest

from .. import base
from ..common import tdc


MOD: str = pathlib.Path(__file__).parent.name


def collect_data(target: str, mod: str = MOD):
return tdc.collect_for(mod, target)


class Collector(base.TDataCollector):
Expand All @@ -16,5 +25,3 @@ class TestCase(unittest.TestCase, Collector):

def setUp(self):
self.init()

# vim:sw=4:ts=4:et:

0 comments on commit 4bbfc54

Please sign in to comment.