Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-558

[Langchain] Make test fixtures session scoped

    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      In INTPYTHON-516 we switched to function scope for fixtures so that we could call close on all the APIs.  However the effect is that the test suite takes a lot longer to run, as it has to re-add and reindex the vector stores for each test.

       

      We can switch back to function scoped fixtures, and only test the close methods in unit tests that verify that the mock client is closed.

      Definition of done

      Update fixtures and add unit tests for close methods.

      Pitfalls

      None

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None