You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: MAINT: STY: group iotool tests into folder #848
Is your feature request related to a problem? Please describe.
there are so many tests now, would it be okay to group some of them, eg iotools into a folder?
Describe the solution you'd like
move all of the iotools tests into a folder called iotools_tests inside the pvlib/test folder
Describe alternatives you've considered
just keep letting the number of files in test grow until someone else thinks it might be useful to group them
Additional context pandas/tests are grouped in folders, but forgo the _tests suffix, it does seem redundant, but will pytest still work without it? I'm not set on any particular convention, as long as it's consistent
so what do folks think? OK to post here? Should I have posted in pvlib-python google group instead? thx!
I'm not completely sure, but I think all of the tests need/should to be in the same top level folder, or at least in the past, I've had problems with VSCode, so maybe it's not a pytest problem per sé.
So like pvlib/test/iotools/test_tmy3.py etc. would that be okay?
Ok but I can assure you that pytest and vscode work just fine using the
pattern I suggested. There is something to be said for putting all the test
code in one place and something to be said for keeping it closer to the
code it tests.
On Mon, Jan 6, 2020 at 6:11 PM Mark Mikofski ***@***.***> wrote:
I'm not completely sure, but I think all of the tests need/should to be in
the same top level folder, or at least in the past, I've had problems with
VSCode, so maybe it's not a pytest problem per sé.
So like pvlib/test/iotools/test_tmy3.py etc. would that be okay?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#848?email_source=notifications&email_token=ABBOER4VXKTE4VSHC7VL4TLQ4PJDPA5CNFSM4KDNUFQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIHK2SY#issuecomment-571387211>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBOER4BYGBIRW7KWJWSQHTQ4PJDPANCNFSM4KDNUFQA>
.
Activity
wholmgren commentedon Jan 7, 2020
I’m ok with any of these reorganizations of the tests. I have a mild preference for a pattern like pvlib/iotools/tests.
And this is the right place to discuss.
mikofski commentedon Jan 7, 2020
I'm not completely sure, but I think all of the tests need/should to be in the same top level folder, or at least in the past, I've had problems with VSCode, so maybe it's not a pytest problem per sé.
So like
pvlib/test/iotools/test_tmy3.pyetc. would that be okay?wholmgren commentedon Jan 7, 2020
cwhanse commentedon Jan 7, 2020
I would prefer pvlib/iotools/test over pvlib/test/iotools/, but not a strong preference.
mikofski commentedon Jan 14, 2020
The internet has spoken?
reorganize tests into subfolders
reorganize tests into subfolders and use pathlib for conftest DATA_DIR (
reorganize tests into subfolders and use pathlib for conftest DATA_DIR (
Snow coverage model from SAM (#764)