Skip to content

17 multi type value test - #22

Open
hulkoba wants to merge 11 commits into
port-python-testsfrom
17-multi-type-value-test
Open

17 multi type value test#22
hulkoba wants to merge 11 commits into
port-python-testsfrom
17-multi-type-value-test

Conversation

@hulkoba

@hulkoba hulkoba commented Nov 18, 2025

Copy link
Copy Markdown

Overview

This PR ports 17-multi-type-value-tests from python to elixir

Testing recommendations

Run:

`make elixir` or `make elixir tests=test/elixir/test/mango/17_multi_type_value_test.exs`

Related Issues or Pull Requests

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • Documentation changes were made in the src/docs folder
  • Documentation changes were backported (separated PR) to affected branches

@hulkoba
hulkoba changed the base branch from main to port-python-tests November 18, 2025 11:37
Comment on lines -53 to -69
class MultiValueFieldJSONTests(mango.DbPerClass, MultiValueFieldTests):
def setUp(self):
super().setUp(db_per_test=True)
self.db.save_docs(copy.deepcopy(DOCS))
self.db.create_index(["name"])
self.db.create_index(["age", "name"])


# @unittest.skipUnless(mango.has_text_service(), "requires text service")
# class MultiValueFieldTextTests(MultiValueFieldDocsNoIndexes, OperatorTests):
# pass


class MultiValueFieldAllDocsTests(mango.DbPerClass, MultiValueFieldTests):
def setUp(self):
super().setUp(db_per_test=True)
self.db.save_docs(copy.deepcopy(DOCS))

@hulkoba hulkoba Nov 19, 2025

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I have not ported these, since there are no tests?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe they are executing the whole class (MultiValueFieldTests) with a different setup? After all MultiValueFieldTests is being passed on as a parameter

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

updated the test to use macro to run both MultiValueFieldJSONTests and MultiValueFieldAllDocsTests
68ab391

keeping the commit separate for now, for ease of review

@hulkoba
hulkoba force-pushed the 17-multi-type-value-test branch from 68ab391 to df6e341 Compare December 3, 2025 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants