test/unit_tests/framework/resources/resource_finder_test.py
croy 456e942169 Resource Finder to get full path to resource files
In order to support using starlingx as a submodule in
outer projects, implementing resource_finder.py as a
utility to find the full path to resources.

Change-Id: I72d6d51eab218927349a02a64771959390624df5
2024-12-02 11:42:37 -05:00

13 lines
347 B
Python

import os
from framework.resources import resource_finder
def test_resource_finder():
"""
Verify that the resource_finder can find the full path to the resources appropriately.
"""
resource_full_path = resource_finder.get_stx_resource_path("framework/resources/resource_finder.py")
assert os.path.isfile(resource_full_path)