abundant-analyst-12845
02/09/2023, 2:39 PMenough-analyst-54434
02/09/2023, 3:13 PM./pants roots
say?abundant-analyst-12845
02/09/2023, 3:15 PMabundant-analyst-12845
02/09/2023, 3:16 PMabundant-analyst-12845
02/09/2023, 3:16 PMenough-analyst-54434
02/09/2023, 3:17 PMShared/tests/helpers/somefile.py
as helpers.somefile
-does that make sense?enough-analyst-54434
02/09/2023, 3:18 PMabundant-analyst-12845
02/09/2023, 3:21 PM[source]
root_patterns = [
"/lambdas/*",
"/shared",
# for conftest
"/",
]
so thought tests would be able to picked up as wellenough-analyst-54434
02/09/2023, 3:25 PM/shared/tests
and report back and we can work from there to make sure you understand why this is neededabundant-analyst-12845
02/09/2023, 3:34 PMenough-analyst-54434
02/09/2023, 3:37 PMshared/session.py
you expect to be found for import? Whatver the answer, the prefix must be a source root.enough-analyst-54434
02/09/2023, 3:38 PMsource
configuration that way. import error -> what file do I expect to be providing that import -> is the prefix in pants roots
.enough-analyst-54434
02/09/2023, 3:39 PMabundant-analyst-12845
02/09/2023, 3:40 PMabundant-analyst-12845
02/09/2023, 3:40 PMenough-analyst-54434
02/09/2023, 3:44 PMabundant-analyst-12845
02/09/2023, 6:17 PMcorrectly
i was mocking using patch
using where the Class/Module was defined as opposed to where it was used.enough-analyst-54434
02/09/2023, 6:28 PMshared.session
is not 1st party code; i.e.: you have no answer for what the full path of shared/session.py
is because its code in some 3rdparty dependency? If so, then this makes sense, the algorithm I described is for 1st party code.abundant-analyst-12845
02/09/2023, 6:31 PMenough-analyst-54434
02/09/2023, 6:40 PM./pants roots
say right now? Does it include shared
still?enough-analyst-54434
02/09/2023, 6:41 PMshared/shared/__init__.py
? Implicit packages may not work in some cases (Pants doesn't care but some 3rdparty libraries do).abundant-analyst-12845
02/09/2023, 6:45 PMenough-analyst-54434
02/09/2023, 6:46 PM