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

Language Module Factory Tests/Fixes #184

Merged
merged 5 commits into from
Oct 12, 2023
Merged

Conversation

NeonDaniel
Copy link
Member

Add unit tests to language factory methods
Update config handling to special-case translation_module and detection_module
Abstract default plugins to private variables for better testing/readability
Relates to #182

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

All modified lines are covered by tests ✅

❗ No coverage uploaded for pull request base (dev@cd33474). Click here to learn what that means.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev    #184   +/-   ##
=====================================
  Coverage       ?   0.00%           
=====================================
  Files          ?      57           
  Lines          ?    3937           
  Branches       ?       0           
=====================================
  Hits           ?       0           
  Misses         ?    3937           
  Partials       ?       0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JarbasAl JarbasAl added bug Something isn't working automations and tests labels Oct 11, 2023
Update config handling to special-case `translation_module` and `detection_module`
Abstract default plugins to private variables for better testing/readability
Relates to #182
@NeonDaniel NeonDaniel force-pushed the FIX_LangFactoryPluginLoading branch from ada5659 to 0b5269d Compare October 11, 2023 21:26
@NeonDaniel NeonDaniel marked this pull request as ready for review October 12, 2023 17:31
@NeonDaniel NeonDaniel requested a review from JarbasAl October 12, 2023 17:31
@@ -99,6 +99,10 @@ def get_lang_detect_module_configs(module_name: str):
return load_plugin_configs(module_name, PluginConfigTypes.LANG_DETECT)


_fallback_lang_detect_plugin = "ovos-lang-detect-ngram-lm"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be updated later, merging for now

@JarbasAl JarbasAl merged commit a81bf99 into dev Oct 12, 2023
10 checks passed
@JarbasAl JarbasAl deleted the FIX_LangFactoryPluginLoading branch October 12, 2023 18:04
@github-actions github-actions bot mentioned this pull request Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automations and tests bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants