Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests, Part 1 #7

Merged
merged 13 commits into from
Nov 25, 2024
Merged

Tests, Part 1 #7

merged 13 commits into from
Nov 25, 2024

Conversation

acederberg
Copy link
Owner

Added mongodb to record information into and some basic tests.

  • Added db and verify subcommands to scripts. Added env find too.
  • Added validation to BuildInfo, build.json is made by config build-info. BuildInfo no longer requires environment variables for configuration when the .git folder exists.
  • Typer documentation updates for all commands.
  • print_yaml how handles pydantic input.
  • Small fixes to content that produces errors.
  • Added mongodb to development compose project.
  • Added tests for verify.

Added ``motor`` as a dependency.
Added ``db`` service to ``compose.yaml``.
Added ``verify`` module.
Added ``build.json``, ``build.qmd`` loads data from there instead of
shortcodes.
Added ``gitpython`` to avoid having to set environment variables and pass flags.
Added ``BuildInfo`` schema.
Added ``HasTimestamp`` baseclass.
Added ``SiteSource`` schema.
Added ``SiteMetadata`` and ``SiteMetadataHandler.get``.
Added object id field to ``db.py``.
Added ``SiteMetadataHistory`` and ``SiteMetadataSearch``.
Added ``require``, ``top``, and ``history`` to ``SiteMetadataHandler``.
Added ``history`` and ``top`` commands.
Moved ``db ping`` into its own subcommand.
Added commit hash validation to builds.
Added actual settings to `db.py` as `Config`.
Added ``BUILD_JSON``, ``CONFIGS``, and ``create_validator`` to ``env.py``.
Added tests for ``verify.py`` handlers.
``util.print_yaml`` now handles ``pydantic`` schemas.
``verify.py`` now maintains ll structure when pushing and popping;
handler is not built from ``Context`` anymore; passing initial values is
supported.
Added ``pydantic_yaml_settings``.
Added ``SourceReport``.
Have ``source`` and ``metadata`` commands.
Added ``verify.Config``.
Helps ignore some tests in CI.
@acederberg acederberg force-pushed the feature/tests branch 8 times, most recently from 0e630c6 to 124fab6 Compare November 22, 2024 19:55
Added more logging to build.

[skip ci]
@acederberg acederberg merged commit 77641de into main Nov 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant