Coder Social home page Coder Social logo

pysdmx's People

Contributors

bvitez avatar dependabot[bot] avatar javihern98 avatar sosna avatar stephprobst avatar stratosn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pysdmx's Issues

Model changes to class hierarchy

Generating code proposal using class hierarchy to adapt it to the SDMX-IM (as is pure form). Modify convenience methods and classes to adopt this structure.

Adapt tests to use relative paths from test files (try to reduce the definition of fixtures and use marks)

Use Path(file).parent to be able to execute the tests from any PYTHONPATH OR

Use global fixtures in conftest.

@stratosn and @sosna any preference on any of these? It is necessary for us to test properly the whole library.

Example (we could any of them in conftest.py to generate a global fixture, but we prefer the Proposal one):

  • Previous
@pytest.fixture()
def body():
    with open("tests/fmr/samples/orgs/agencies.fusion.json", "rb") as f:
        return f.read()
  • Proposal
@pytest.fixture()
def body():
    samples_path = Path(__file__).parent.parent / "samples"
    with open(samples_path / "orgs/agencies.fusion.json", "rb") as f:
        return f.read()

For global fixture, we could use a mark and add the request param to the fixture:

conftest.py

@fixture
def agencies_path(request):
    base_path = request.node.get_closest_marker('input_path').args[0]
    return "samples" / "orgs" / "agencies.fusion.json"

Any test file

pytestmark = pytest.mark.input_path(Path(__file__).parent)

pytest.ini

[pytest]
addopts = --strict-markers
markers =
    input_path: directory where tests data files are stored

Add โ€˜sdmxโ€™ Topic: Boost Discoverability for SDMX Repositories

Dear repository owners, ๐ŸŒŸ

As your repository is related to SDMX (Statistical Data and Metadata Exchange), please consider adding the sdmx topic to it. This will help other developers discover and engage with your project more easily.

To associate your repository with the sdmx topic, visit your repo's landing page and select 'manage topics'. Let's make SDMX-related projects more visible and accessible! ๐Ÿš€

Thank you for contributing to the community! ๐Ÿ™Œ

For detailed instructions on how to add topics to your repository, refer to the GitHub documentation.

Happy coding! ๐ŸŒ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.