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

Tests are not being discovered correctly - pytest #22643

Closed
rodzun opened this issue Dec 13, 2023 · 29 comments
Closed

Tests are not being discovered correctly - pytest #22643

rodzun opened this issue Dec 13, 2023 · 29 comments
Assignees
Labels
area-testing info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@rodzun
Copy link

rodzun commented Dec 13, 2023

Type: Bug

Behaviour

Expected vs. Actual

Extension should discover all unit tests but it does not. In terminal it finds a lot more test cases that in the extension.

Steps to reproduce:

I think I found the pattern for this issue. When you have several classes inside a unit test file, the extension only discovers the last class tests.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.12
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

No error shown

User Settings


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Extension version: 2023.22.0
VS Code version: Code 1.85.0 (af28b32d7e553898b2a91af498b1fb666fdebe0c, 2023-12-06T20:48:09.019Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz (8 x 2918)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.74GB (7.88GB free)
Process Argv --crash-reporter-id 93887114-f95c-4ef0-96d1-9a3c94563709
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu
OS Linux x64 5.15.133.1-microsoft-standard-WSL2
CPUs 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz (8 x 2918)
Memory (System) 15.50GB (11.61GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30899288
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyonecf:30548226
2e4cg342:30602488
89544117:30613380
showlangstatbar:30737416
962ge761:30917236
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialog:30910333
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Dec 13, 2023
@rodzun
Copy link
Author

rodzun commented Dec 13, 2023

As a side note, it also shows two test trees (as shown in the ss) when it should only show the last one. The first has nothing inside and if I run that one it runs indefinitely. It does not change the main behavior but may be related to the issue.

image

@eleanorjboyd eleanorjboyd self-assigned this Dec 13, 2023
@eleanorjboyd
Copy link
Member

Hello! Could you include a layout of your project and your logs from the python output channel? For your logs, can you first set your log level to trace via theDeveloper: set log level command in the command palette? With these I can better help figure out what might be going wrong. Thanks

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 13, 2023
@rodzun
Copy link
Author

rodzun commented Dec 14, 2023

Python Output 2023-12-14 02:00:38.406 [info] Experiment 'pythonRecommendTensorboardExt' is active 2023-12-14 02:00:38.406 [info] Experiment 'pythonREPLSmartSend' is active 2023-12-14 02:00:38.406 [info] Experiment 'pythonTerminalEnvVarActivation' is active 2023-12-14 02:00:38.406 [info] Experiment 'pythonTestAdapter' is active 2023-12-14 02:00:38.406 [debug] Getting roots 2023-12-14 02:00:38.406 [debug] Getting roots 2023-12-14 02:00:38.406 [debug] Found roots 2023-12-14 02:00:38.406 [debug] Start watching file for changes /home/rodzun/.conda/environments.txt 2023-12-14 02:00:38.406 [debug] Start watching: /home/rodzun/.conda with pattern environments.txt using VSCode API 2023-12-14 02:00:38.406 [debug] Found roots 2023-12-14 02:00:38.406 [debug] Start watching root /home/rodzun/reviNEW/z-dash for globs ["python","*/python","*/bin/python"] 2023-12-14 02:00:38.406 [debug] Start watching: /home/rodzun/reviNEW/z-dash with pattern python using VSCode API 2023-12-14 02:00:38.406 [debug] Start watching: /home/rodzun/reviNEW/z-dash with pattern */python using VSCode API 2023-12-14 02:00:38.406 [debug] Start watching: /home/rodzun/reviNEW/z-dash with pattern */bin/python using VSCode API 2023-12-14 02:00:38.406 [info] Default formatter is set to null for workspace /home/rodzun/reviNEW/z-dash 2023-12-14 02:00:38.406 [debug] Waiting for test server to start... 2023-12-14 02:00:38.408 [info] Test server listening. 2023-12-14 02:00:38.408 [debug] Test server started. 2023-12-14 02:00:38.408 [debug] Testing: Setting up watcher for /home/rodzun/reviNEW/z-dash 2023-12-14 02:00:38.409 [debug] Needed to validate /home/rodzun/.virtualenvs/revi310/bin/python with latest info 2023-12-14 02:00:38.412 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:38.413 [debug] Needed to validate /home/rodzun/.virtualenvs/turn/bin/python with latest info 2023-12-14 02:00:38.414 [debug] Needed to validate /home/rodzun/.virtualenvs/cuboid-challenge-python-emhoVg_9/bin/python with latest info 2023-12-14 02:00:38.414 [debug] Needed to validate /home/rodzun/.virtualenvs/fullstacklabs/bin/python with latest info 2023-12-14 02:00:38.415 [debug] Needed to validate /home/rodzun/.virtualenvs/koombea/bin/python with latest info 2023-12-14 02:00:38.416 [debug] Needed to validate /home/rodzun/.virtualenvs/revi/bin/python with latest info 2023-12-14 02:00:38.417 [debug] Needed to validate /bin/python2 with latest info 2023-12-14 02:00:38.418 [debug] Needed to validate /bin/python3 with latest info 2023-12-14 02:00:38.419 [debug] Needed to validate /bin/python3.7 with latest info 2023-12-14 02:00:38.419 [debug] Needed to validate /bin/python3.9 with latest info 2023-12-14 02:00:38.420 [debug] Needed to validate /usr/bin/python2 with latest info 2023-12-14 02:00:38.423 [debug] Needed to validate /usr/bin/python3 with latest info 2023-12-14 02:00:38.424 [debug] Needed to validate /usr/bin/python3.7 with latest info 2023-12-14 02:00:38.424 [debug] Needed to validate /usr/bin/python3.9 with latest info 2023-12-14 02:00:38.425 [debug] Needed to validate /home/rodzun/.virtualenvs/revi310/bin/python with latest info 2023-12-14 02:00:38.425 [debug] Needed to validate /bin/python3.10 with latest info 2023-12-14 02:00:38.425 [debug] Needed to validate /usr/bin/python3.10 with latest info 2023-12-14 02:00:38.427 [debug] Needed to validate /home/rodzun/.virtualenvs/revi310/bin/python with latest info 2023-12-14 02:00:38.428 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:38.429 [debug] Needed to validate /home/rodzun/.virtualenvs/revi310/bin/python with latest info 2023-12-14 02:00:38.430 [info] Python interpreter path: ~/.virtualenvs/revi310/bin/python 2023-12-14 02:00:38.430 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:38.919 [info] Send text to terminal: echo /usr/bin/bash 2023-12-14 02:00:38.920 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:38.928 [debug] Extension ms-toolsai.jupyter accessed onDidEnvironmentVariablesChange with args: undefined 2023-12-14 02:00:38.929 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined 2023-12-14 02:00:38.931 [debug] Extension ms-toolsai.jupyter accessed getEnvironmentVariables with args: undefined 2023-12-14 02:00:38.932 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined 2023-12-14 02:00:38.933 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-12-14 02:00:38.934 [debug] Extension ms-toolsai.jupyter accessed onDidEnvironmentVariablesChange with args: undefined 2023-12-14 02:00:38.935 [debug] Extension ms-toolsai.jupyter accessed onDidChangeActiveEnvironmentPath with args: undefined 2023-12-14 02:00:38.936 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined 2023-12-14 02:00:38.937 [debug] Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath with args: undefined 2023-12-14 02:00:38.938 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"id":"/home/rodzun/.virtualenvs/revi310/bin/python","path":"/home/rodzun/.virtualenvs/revi310/bin/python"} 2023-12-14 02:00:38.940 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-12-14 02:00:38.941 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-12-14 02:00:38.942 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/rodzun/.virtualenvs/turn/bin/python","id":"/home/rodzun/.virtualenvs/turn/bin/python","executable":{"uri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/turn/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/rodzun/.virtualenvs/turn"},"environment":{"type":"VirtualEnvironment","name":"turn","folderUri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/turn","scheme":"file"}},"version":{"major":3,"minor":8,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"},"tools":["Venv"]},"id":"/home/rodzun/.virtualenvs/turn/bin/python"} 2023-12-14 02:00:38.942 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/rodzun/.virtualenvs/cuboid-challenge-python-emhoVg_9/bin/python","id":"/home/rodzun/.virtualenvs/cuboid-challenge-python-emhoVg_9/bin/python","executable":{"uri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/cuboid-challenge-python-emhoVg_9/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/rodzun/.virtualenvs/cuboid-challenge-python-emhoVg_9"},"environment":{"type":"VirtualEnvironment","name":"cuboid-challenge-python-emhoVg_9","folderUri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/cuboid-challenge-python-emhoVg_9","scheme":"file"}},"version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jun 6 2023, 20:11:04) \n[GCC 9.4.0]"},"tools":["Pipenv"]},"id":"/home/rodzun/.virtualenvs/cuboid-challenge-python-emhoVg_9/bin/python"} 2023-12-14 02:00:38.943 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/rodzun/.virtualenvs/fullstacklabs/bin/python","id":"/home/rodzun/.virtualenvs/fullstacklabs/bin/python","executable":{"uri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/fullstacklabs/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/rodzun/.virtualenvs/fullstacklabs"},"environment":{"type":"VirtualEnvironment","name":"fullstacklabs","folderUri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/fullstacklabs","scheme":"file"}},"version":{"major":3,"minor":8,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"},"tools":["Venv"]},"id":"/home/rodzun/.virtualenvs/fullstacklabs/bin/python"} 2023-12-14 02:00:38.944 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/rodzun/.virtualenvs/koombea/bin/python","id":"/home/rodzun/.virtualenvs/koombea/bin/python","executable":{"uri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/koombea/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/rodzun/.virtualenvs/koombea"},"environment":{"type":"VirtualEnvironment","name":"koombea","folderUri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/koombea","scheme":"file"}},"version":{"major":3,"minor":8,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"},"tools":["Venv"]},"id":"/home/rodzun/.virtualenvs/koombea/bin/python"} 2023-12-14 02:00:38.945 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/rodzun/.virtualenvs/revi/bin/python","id":"/home/rodzun/.virtualenvs/revi/bin/python","executable":{"uri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/revi/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/rodzun/.virtualenvs/revi"},"environment":{"type":"VirtualEnvironment","name":"revi","folderUri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/revi","scheme":"file"}},"version":{"major":3,"minor":7,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.7.17 (default, Jun 6 2023, 20:10:10) \n[GCC 9.4.0]"},"tools":["Venv"]},"id":"/home/rodzun/.virtualenvs/revi/bin/python"} 2023-12-14 02:00:38.946 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/bin/python2","id":"/bin/python2","executable":{"uri":{"$mid":1,"path":"/bin/python2","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":2,"minor":7,"micro":18,"release":{"level":"final","serial":0},"sysVersion":"2.7.18 (default, Jul 1 2022, 12:27:04) \n[GCC 9.4.0]"},"tools":[]},"id":"/bin/python2"} 2023-12-14 02:00:38.948 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/bin/python3","id":"/bin/python3","executable":{"uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":8,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"},"tools":[]},"id":"/bin/python3"} 2023-12-14 02:00:38.949 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/bin/python3.7","id":"/bin/python3.7","executable":{"uri":{"$mid":1,"path":"/bin/python3.7","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":7,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.7.17 (default, Jun 6 2023, 20:10:10) \n[GCC 9.4.0]"},"tools":[]},"id":"/bin/python3.7"} 2023-12-14 02:00:38.950 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/bin/python3.9","id":"/bin/python3.9","executable":{"uri":{"$mid":1,"path":"/bin/python3.9","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jun 6 2023, 20:11:04) \n[GCC 9.4.0]"},"tools":[]},"id":"/bin/python3.9"} 2023-12-14 02:00:38.951 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/bin/python2","id":"/usr/bin/python2","executable":{"uri":{"$mid":1,"path":"/usr/bin/python2","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":2,"minor":7,"micro":18,"release":{"level":"final","serial":0},"sysVersion":"2.7.18 (default, Jul 1 2022, 12:27:04) \n[GCC 9.4.0]"},"tools":[]},"id":"/usr/bin/python2"} 2023-12-14 02:00:38.952 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/bin/python3","id":"/usr/bin/python3","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":8,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"},"tools":[]},"id":"/usr/bin/python3"} 2023-12-14 02:00:38.953 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/bin/python3.7","id":"/usr/bin/python3.7","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3.7","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":7,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.7.17 (default, Jun 6 2023, 20:10:10) \n[GCC 9.4.0]"},"tools":[]},"id":"/usr/bin/python3.7"} 2023-12-14 02:00:38.954 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/bin/python3.9","id":"/usr/bin/python3.9","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3.9","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jun 6 2023, 20:11:04) \n[GCC 9.4.0]"},"tools":[]},"id":"/usr/bin/python3.9"} 2023-12-14 02:00:38.956 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/rodzun/.virtualenvs/revi310/bin/python","id":"/home/rodzun/.virtualenvs/revi310/bin/python","executable":{"uri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/revi310/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/rodzun/.virtualenvs/revi310"},"environment":{"type":"VirtualEnvironment","name":"revi310","folderUri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/revi310","scheme":"file"}},"version":{"major":3,"minor":10,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.10.12 (main, Jun 7 2023, 12:45:35) [GCC 9.4.0]"},"tools":["Venv"]},"id":"/home/rodzun/.virtualenvs/revi310/bin/python"} 2023-12-14 02:00:38.972 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/bin/python3.10","id":"/bin/python3.10","executable":{"uri":{"$mid":1,"path":"/bin/python3.10","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.10.12 (main, Jun 7 2023, 12:45:35) [GCC 9.4.0]"},"tools":[]},"id":"/bin/python3.10"} 2023-12-14 02:00:38.974 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/bin/python3.10","id":"/usr/bin/python3.10","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3.10","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.10.12 (main, Jun 7 2023, 12:45:35) [GCC 9.4.0]"},"tools":[]},"id":"/usr/bin/python3.10"} 2023-12-14 02:00:38.975 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"id":"/home/rodzun/.virtualenvs/revi310/bin/python","path":"/home/rodzun/.virtualenvs/revi310/bin/python"} 2023-12-14 02:00:38.976 [debug] Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath with args: undefined 2023-12-14 02:00:38.985 [debug] Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath with args: undefined 2023-12-14 02:00:38.986 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"id":"/home/rodzun/.virtualenvs/revi310/bin/python","path":"/home/rodzun/.virtualenvs/revi310/bin/python"} 2023-12-14 02:00:38.988 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-12-14 02:00:38.989 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-12-14 02:00:38.991 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/rodzun/.virtualenvs/revi310/bin/python","id":"/home/rodzun/.virtualenvs/revi310/bin/python","executable":{"uri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/revi310/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/rodzun/.virtualenvs/revi310"},"environment":{"type":"VirtualEnvironment","name":"revi310","folderUri":{"$mid":1,"path":"/home/rodzun/.virtualenvs/revi310","scheme":"file"}},"version":{"major":3,"minor":10,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.10.12 (main, Jun 7 2023, 12:45:35) [GCC 9.4.0]"},"tools":["Venv"]},"id":"/home/rodzun/.virtualenvs/revi310/bin/python"} 2023-12-14 02:00:39.012 [debug] Searching for conda. 2023-12-14 02:00:39.028 [debug] Probing conda binary: conda 2023-12-14 02:00:39.084 [debug] Extension ms-toolsai.jupyter accessed getEnvironmentVariables with args: undefined 2023-12-14 02:00:39.129 [debug] Dump environment variables { "USER": "rodzun", "VSCODE_WSL_EXT_LOCATION": "/mnt/c/Users/RodZun/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.8", "SHLVL": "0", "HOME": "/home/rodzun", "WSL_DISTRO_NAME": "Ubuntu", "WAYLAND_DISPLAY": "wayland-0", "LOGNAME": "rodzun", "NAME": "DESKTOP-NTQQJMV", "WSL_INTEROP": "/run/WSL/12_interop", "PULSE_SERVER": "unix:/mnt/wslg/PulseServer", "_": "/home/rodzun/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/node", "TERM": "xterm-256color", "XDG_RUNTIME_DIR": "/mnt/wslg/runtime-dir", "DISPLAY": ":0", "LANG": "C.UTF-8", "SHELL": "/bin/bash", "PWD": "/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code", "WSL2_GUI_APPS_ENABLED": "1", "HOSTTYPE": "x86_64", "WSLENV": "VSCODE_WSL_EXT_LOCATION/up", "VSCODE_HANDLES_SIGPIPE": "true", "VIRTUALENVWRAPPER_SCRIPT": "/usr/local/bin/virtualenvwrapper.sh", "VIRTUALENVWRAPPER_WORKON_CD": "1", "WORKON_HOME": "/home/rodzun/.virtualenvs", "VIRTUALENVWRAPPER_PROJECT_FILENAME": ".project", "XDG_DATA_DIRS": "/usr/local/share:/usr/share:/var/lib/snapd/desktop", "VIRTUALENVWRAPPER_HOOK_DIR": "/home/rodzun/.virtualenvs", "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess", "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true", "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}", "VSCODE_CWD": "/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code", "ELECTRON_RUN_AS_NODE": "1", "VSCODE_IPC_HOOK_CLI": "/mnt/wslg/runtime-dir/vscode-ipc-55aff914-b383-4cc4-b873-d17618b497ea.sock", "PATH": "/home/rodzun/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/RodZun/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/heroku/bin:/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/RodZun/AppData/Roaming/npm:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/snap/bin" } 2023-12-14 02:00:39.133 [info] > conda info --json 2023-12-14 02:00:39.133 [debug] Worker id 1 for file plainExec.worker.js with data {"file":"conda","args":["info","--json"],"options":{"timeout":45000,"useWorker":true}} 2023-12-14 02:00:39.328 [debug] Extension ms-python.vscode-pylance accessed onDidChangeActiveEnvironmentPath with args: undefined 2023-12-14 02:00:39.330 [debug] Extension ms-python.vscode-pylance accessed onDidEnvironmentVariablesChange with args: undefined 2023-12-14 02:00:39.344 [debug] Activation Commands received source /home/rodzun/.virtualenvs/revi310/bin/activate for shell bash, resource /home/rodzun/reviNEW/z-dash and interpreter /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:39.344 [debug] Activating Environment to capture Environment variables, . /home/rodzun/.virtualenvs/revi310/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariables.py 2023-12-14 02:00:39.344 [info] > . ~/.virtualenvs/revi310/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariables.py 2023-12-14 02:00:39.344 [info] shell: bash 2023-12-14 02:00:39.347 [debug] Failed to spawn conda binary conda Error: spawn conda ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) 2023-12-14 02:00:39.399 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:39.490 [debug] Couldn't locate the conda binary. 2023-12-14 02:00:39.562 [debug] Activation Commands received source /home/rodzun/.virtualenvs/revi310/bin/activate for shell /usr/bin/bash, resource /home/rodzun/reviNEW/z-dash and interpreter /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:39.562 [debug] Activating Environment to capture Environment variables, . /home/rodzun/.virtualenvs/revi310/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariables.py 2023-12-14 02:00:39.562 [info] > . ~/.virtualenvs/revi310/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariables.py 2023-12-14 02:00:39.562 [info] shell: bash 2023-12-14 02:00:39.652 [debug] Activated environment variables for /home/rodzun/reviNEW/z-dash { SHELL: '/bin/bash', PYTHONUNBUFFERED: '1', WSL2_GUI_APPS_ENABLED: '1', WSL_DISTRO_NAME: 'Ubuntu', ELECTRON_RUN_AS_NODE: '1', VSCODE_AMD_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess', NAME: 'DESKTOP-NTQQJMV', PWD: '/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code', LOGNAME: 'rodzun', VIRTUALENVWRAPPER_SCRIPT: '/usr/local/bin/virtualenvwrapper.sh', HOME: '/home/rodzun', LANG: 'C.UTF-8', WSL_INTEROP: '/run/WSL/12_interop', VIRTUAL_ENV: '/home/rodzun/.virtualenvs/revi310', WAYLAND_DISPLAY: 'wayland-0', VIRTUALENVWRAPPER_WORKON_CD: '1', WORKON_HOME: '/home/rodzun/.virtualenvs', VSCODE_HANDLES_SIGPIPE: 'true', TERM: 'xterm-256color', USER: 'rodzun', PYTHONIOENCODING: 'utf-8', VIRTUALENVWRAPPER_PROJECT_FILENAME: '.project', DISPLAY: ':0', SHLVL: '0', VSCODE_CWD: '/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code', XDG_RUNTIME_DIR: '/mnt/wslg/runtime-dir', PS1: '(revi310) ', WSLENV: 'VSCODE_WSL_EXT_LOCATION/up', VSCODE_WSL_EXT_LOCATION: '/mnt/c/Users/RodZun/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.8', XDG_DATA_DIRS: '/usr/local/share:/usr/share:/var/lib/snapd/desktop', PATH: '/home/rodzun/.virtualenvs/revi310/bin:/home/rodzun/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/RodZun/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/heroku/bin:/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/RodZun/AppData/Roaming/npm:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/snap/bin', VIRTUALENVWRAPPER_HOOK_DIR: '/home/rodzun/.virtualenvs', VSCODE_NLS_CONFIG: '{"locale":"en","osLocale":"en","availableLanguages":{}}', HOSTTYPE: 'x86_64', PULSE_SERVER: 'unix:/mnt/wslg/PulseServer', VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true', VSCODE_IPC_HOOK_CLI: '/mnt/wslg/runtime-dir/vscode-ipc-55aff914-b383-4cc4-b873-d17618b497ea.sock', _: '/home/rodzun/.virtualenvs/revi310/bin/python' } 2023-12-14 02:00:39.664 [info] > /bin/python2 ~/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariables.py 2023-12-14 02:00:39.664 [info] shell: bash 2023-12-14 02:00:39.682 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:39.682 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:39.684 [debug] Setting environment variable VIRTUAL_ENV in collection to /home/rodzun/.virtualenvs/revi310 2023-12-14 02:00:39.684 [debug] Prepending environment variable PS1 in collection with (revi310) 2023-12-14 02:00:39.684 [debug] Prepending environment variable PATH in collection with /home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/deactivate/bash:/home/rodzun/.virtualenvs/revi310/bin: 2023-12-14 02:00:39.685 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:39.686 [info] Send text to terminal: /bin/python2 /home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/printEnvVariablesToFile.py /home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/deactivate/bash/envVars.txt 2023-12-14 02:00:39.761 [debug] Clearing context for python dependencies not installed: /home/rodzun/reviNEW/z-dash/zdash/revi/orders/api/endpoints/orders_viewset.py 2023-12-14 02:00:39.888 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:40.798 [info] Starting Pylance language server. 2023-12-14 02:00:40.801 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:40.811 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:40.812 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:40.871 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined 2023-12-14 02:00:40.874 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/rodzun/.virtualenvs/revi310/bin/python","path":"/home/rodzun/.virtualenvs/revi310/bin/python"} 2023-12-14 02:00:40.876 [debug] Extension ms-python.vscode-pylance accessed getEnvironmentVariables with args: undefined 2023-12-14 02:00:40.878 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined 2023-12-14 02:00:40.880 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/rodzun/.virtualenvs/revi310/bin/python","path":"/home/rodzun/.virtualenvs/revi310/bin/python"} 2023-12-14 02:00:43.101 [debug] Testing: Refreshing all test data 2023-12-14 02:00:43.101 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-14 02:00:43.109 [info] Discover tests for workspace name: z-dash - uri: /home/rodzun/reviNEW/z-dash 2023-12-14 02:00:43.109 [info] Running discovery for pytest using the new test adapter. 2023-12-14 02:00:43.110 [info] All environment variables set for pytest discovery for workspace /home/rodzun/reviNEW/z-dash: {"USER":"rodzun","VSCODE_WSL_EXT_LOCATION":"/mnt/c/Users/RodZun/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.8","SHLVL":"0","HOME":"/home/rodzun","WSL_DISTRO_NAME":"Ubuntu","WAYLAND_DISPLAY":"wayland-0","LOGNAME":"rodzun","NAME":"DESKTOP-NTQQJMV","WSL_INTEROP":"/run/WSL/12_interop","PULSE_SERVER":"unix:/mnt/wslg/PulseServer","_":"/home/rodzun/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/node","TERM":"xterm-256color","XDG_RUNTIME_DIR":"/mnt/wslg/runtime-dir","DISPLAY":":0","LANG":"C.UTF-8","SHELL":"/bin/bash","PWD":"/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code","WSL2_GUI_APPS_ENABLED":"1","HOSTTYPE":"x86_64","WSLENV":"VSCODE_WSL_EXT_LOCATION/up","VSCODE_HANDLES_SIGPIPE":"true","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","VIRTUALENVWRAPPER_WORKON_CD":"1","WORKON_HOME":"/home/rodzun/.virtualenvs","VIRTUALENVWRAPPER_PROJECT_FILENAME":".project","XDG_DATA_DIRS":"/usr/local/share:/usr/share:/var/lib/snapd/desktop","VIRTUALENVWRAPPER_HOOK_DIR":"/home/rodzun/.virtualenvs","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}","VSCODE_CWD":"/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code","ELECTRON_RUN_AS_NODE":"1","VSCODE_IPC_HOOK_CLI":"/mnt/wslg/runtime-dir/vscode-ipc-55aff914-b383-4cc4-b873-d17618b497ea.sock","PATH":"/home/rodzun/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/RodZun/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/heroku/bin:/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/RodZun/AppData/Roaming/npm:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/snap/bin","PYTHONPATH":"/home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles","TEST_UUID":"a50f4546-d6ad-4385-83b6-53c46d13495f","TEST_PORT":"35081"}

2023-12-14 02:00:43.110 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python
2023-12-14 02:00:43.142 [debug] Running pytest discovery with command: -m pytest -p vscode_pytest --collect-only zdash for workspace /home/rodzun/reviNEW/z-dash.
2023-12-14 02:00:43.143 [info] > ~/.virtualenvs/revi310/bin/python -m pytest -p vscode_pytest --collect-only zdash
2023-12-14 02:00:43.143 [info] cwd: .
2023-12-14 02:00:43.933 [debug] Terminal shell path '/usr/bin/bash' identified as shell 'bash'
2023-12-14 02:00:43.933 [debug] Shell identified as bash
2023-12-14 02:00:43.933 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python
2023-12-14 02:00:47.483 [debug] Clearing context for python dependencies not installed: /home/rodzun/reviNEW/z-dash/zdash/revi/orders/api/endpoints/orders_viewset.py
2023-12-14 02:00:47.727 [debug] Clearing context for python dependencies not installed: /home/rodzun/reviNEW/z-dash/zdash/revi/orders/api/endpoints/orders_viewset.py
2023-12-14 02:00:49.820 [info] ============================= test session starts ==============================

2023-12-14 02:00:49.820 [info] platform linux -- Python 3.10.12, pytest-6.2.5, py-1.11.0, pluggy-1.2.0

2023-12-14 02:00:49.826 [info] django: settings: zdash.settings (from ini)
rootdir: /home/rodzun/reviNEW/z-dash/zdash, configfile: pytest.ini
plugins: forked-1.6.0, django-3.10.0, mock-3.11.1, xdist-2.5.0, factoryboy-2.1.0, Faker-19.3.1, requests-mock-1.8.0, datadir-1.3.1, lazy-fixture-0.6.3

2023-12-14 02:00:58.380 [info] collected 2152 items

2023-12-14 02:00:58.380 [info]

2023-12-14 02:00:58.381 [info]





<Function test_twilio_webhook[pusher.v1]>
<Function test_twilio_webhook[pusher.v2]>






<Function test_active_filter[Explicit: Active tax rules]>
<Function test_active_filter[Default: Active tax rules]>
<Function test_active_filter[Inactive tax rules]>




<Function test_business_onboarding_completed[Default is not completed]>
<Function test_business_onboarding_completed[Full completed]>
<Function test_business_onboarding_completed[Skipped is completed state]>






<Function test_update_account_company[create request]>
<Function test_update_account_company[update request]>

<Function test_update_account_sole[create request]>
<Function test_update_account_sole[update request]>
<Function test_upload_document[True-input_corporate_document_front]>
<Function test_upload_document[False-input_corporate_document_back]>
<Function test_client_status[COMPLETED-COMPLETED-Active-None]>
<Function test_client_status[VERIFYING-COMPLETED-Active-ActivateKioskError]>
<Function test_client_status[COMPLETED-VERIFYING-Active-ActivateKioskError]>
<Function test_client_status[TODO-COMPLETED-Active-ActivateKioskError]>
<Function test_client_status[ERROR-COMPLETED-Active-ActivateKioskError]>
<Function test_client_status[ERROR-TODO-Pending Install-None]>




<Function test_set_invalid_wait_time_buckets[buckets0-StartElementRequiredError]>
<Function test_set_invalid_wait_time_buckets[buckets1-OverlappedOrders]>
<Function test_set_invalid_wait_time_buckets[buckets2-OverlappedTime]>










<Function test_get_cart[One location, without additional]>
<Function test_get_cart[Two locations, without additional]>
<Function test_get_cart[One location, all addons]>
<Function test_get_cart[Two locations, all addons at first, no 4g at the second]>
<Function test_get_cart[POS plan Sampler, monthly]>
<Function test_get_cart[POS plan Regular, Upfront]>




<Function test_finish_if_success_payment[stripe_response0-False]>
<Function test_finish_if_success_payment[stripe_response1-True]>
<Function test_apply_promocode_valid[promocode_dollar--1050]>
<Function test_apply_promocode_valid[promocode_percent--9647]>





<Function test_remind_about_disputes_partner_is_handling[3 days left - do not remind]>
<Function test_remind_about_disputes_partner_is_handling[2 days left - remind]>
<Function test_remind_about_disputes_partner_is_handling[1 day left - remind]>
<Function test_remind_about_disputes_partner_is_handling[0 day left - do not remind]>
<Function test_remind_about_disputes_partner_is_handling[in the past - do not remind]>


<Function test_process_event_customer_card_created[event_customer1_source_created]>
<Function test_process_event_customer_card_created[event_customer1_payment_method_attached]>





























2023-12-14 02:00:58.381 [info]













<Module revi/bff/tests/userapp/test_home_carousels.py>



<Module revi/bff/tests/userapp/test_home_feed.py>



<Module revi/bff/tests/userapp/test_wallet.py>




















2023-12-14 02:00:58.381 [info] <Function test_business__cases[[email protected]@[email protected]]>
<Function test_business__cases[[email protected]@[email protected]]>
<Function test_business__cases[[email protected]@[email protected]]>











2023-12-14 02:00:58.381 [info]








<Function test_set_failed[Overlapping hours]>
<Function test_set_failed[Opened, but no working hours]>
<Function test_set_failed[Close time before open time]>
<Function test_get_working_status[Opened today]>
2023-12-14 02:00:58.381 [info]
<Function test_get_working_status[Closed today, opened tomorrow]>
<Function test_get_working_status[Closed and not opened tomorrow]>
<Function test_get_working_status[Opened today but not now]>
<Function test_get_working_status[Opened today two times]>
<Function test_get_working_status[Overnight, not opened yet]>
<Function test_get_working_status[Overnight, in the morning]>




<Function test_login[Dashboard - failed]>
<Function test_login[Dashboard - OWNER, succeed]>

2023-12-14 02:00:58.381 [info] <Function test_login[KDS - OWNER, succeed]>
<Function test_login[REVIPAD - OWNER, succeed]>
<Function test_login[DASHBOARD - via pin, failed]>
<Function test_login[REVIPAD - pin, succeed]>
<Function test_login[Employee pin, succeed]>






2023-12-14 02:00:58.381 [info]




2023-12-14 02:00:58.382 [info]






































2023-12-14 02:00:58.382 [info]

































2023-12-14 02:00:58.382 [info]
















2023-12-14 02:00:58.382 [info]








2023-12-14 02:00:58.382 [info]







2023-12-14 02:00:58.382 [info]






2023-12-14 02:00:58.382 [info]










2023-12-14 02:00:58.382 [info]






2023-12-14 02:00:58.382 [info]






2023-12-14 02:00:58.382 [info]







2023-12-14 02:00:58.382 [info]






2023-12-14 02:00:58.382 [info]






2023-12-14 02:00:58.382 [info]









2023-12-14 02:00:58.382 [info]










2023-12-14 02:00:58.382 [info]







2023-12-14 02:00:58.382 [info]







2023-12-14 02:00:58.382 [info]













<Function test_log_in__using_order_id2__success[id2]>
<Function test_log_in__using_order_id2__success[uuid]>
<Function test_log_in__using_order_id2__success[transactionId]>











2023-12-14 02:00:58.383 [info]






















2023-12-14 02:00:58.383 [info]




















2023-12-14 02:00:58.383 [info]





































<Function test_exception_message[exc0-Invalid promocode.]>
<Function test_exception_message[exc1-Discount code is not active.]>
<Function test_exception_message[exc2-Discount code is out of usage limit.]>
<Function test_exception_message[exc3-Discount code will be activated on 28 April 2020.]>
<Function test_exception_message[exc4-Discount code was active until 28 April 2020.]>















<Function test_list_with_filters[in_store code, business1]>
<Function test_list_with_filters[inactive, business2]>









<Function test_without_field[data0-error0]>
<Function test_without_field[data1-error1]>



2023-12-14 02:00:58.383 [info]































2023-12-14 02:00:58.383 [info]




















2023-12-14 02:00:58.383 [info]





















<Function test_create_custom_not_allowed[1]>
<Function test_create_custom_not_allowed[5000]>

















2023-12-14 02:00:58.384 [info]




<Function test_create_custom_not_allowed[1]>
<Function test_create_custom_not_allowed[5000]>





















<Function test_post_duplicated_account__failed[Only one unique phone number per business]>
<Function test_post_duplicated_account__failed[Only one unique email per business]>
<Function test_patch_duplicated_account__failed[Only one unique phone number per business]>
<Function test_patch_duplicated_account__failed[Only one unique email per business]>






2023-12-14 02:00:58.384 [info]
<Function test_order_modifier__errors[Can not pay with account for delivery orders]>
<Function test_order_modifier__errors[Skip other non-account payment methods]>
<Function test_order_modifier__errors[Check customer is authorized]>
<Function test_order_modifier__errors[No internal account for the phone number]>
<Function test_order_modifier__errors[Internal account is disabled]>






















2023-12-14 02:00:58.384 [info]










<Module revi/marketing/tests/integration/api/test_campaign_api.py>


2023-12-14 02:00:58.384 [info]











2023-12-14 02:00:58.384 [info] <Module revi/marketing/tests/integration/api/test_import_subscribers_api.py>




<Module revi/marketing/tests/integration/api/test_marketing_settings_api.py>





2023-12-14 02:00:58.384 [info]
<Module revi/marketing/tests/integration/api/test_segment_api.py>







<Module revi/marketing/tests/integration/api/test_webhooks_api.py>

2023-12-14 02:00:58.384 [info]









2023-12-14 02:00:58.384 [info]






<Function test_get_next_dates[UTC-8, Every Monday]>
<Function test_get_next_dates[UTC-5, Every Monday]>
<Function test_get_next_dates[UTC-5, Every Monday, with start date]>
<Function test_get_next_dates[UTC-5, Every Monday, with start and until dates]>
<Function test_get_next_dates[UTC-5, Every Monday at 11:30 AM]>


<Function test_check_completed[Two days left]>
<Function test_check_completed[Until yesterday]>






2023-12-14 02:00:58.385 [info]












<Function test_collect_subscribers_summary_for_all[Recent orders and collected]>
<Function test_collect_subscribers_summary_for_all[Old orders but not collected]>
<Function test_collect_subscribers_summary_for_all[Old orders, collected]>
















2023-12-14 02:00:58.385 [info]




<Function test_update_menu_general_ignored[name-NewName-True]>
<Function test_update_menu_general_ignored[items-value1-True]>
<Function test_update_menu_general_ignored[active-True-False]>








2023-12-14 02:00:58.385 [info]



<Function test_custom_menu_active[True-True-expected_items0]>
<Function test_custom_menu_active[False-True-expected_items1]>
<Function test_custom_menu_active[True-False-expected_items2]>
<Function test_custom_menu_active[False-False-expected_items3]>

2023-12-14 02:00:58.385 [info] <Function test_custom_menu_scheduled[2020-12-21 08:00:00 PST-expected_items0]>
<Function test_custom_menu_scheduled[2020-12-22 18:00:00 PST-expected_items1]>
<Function test_custom_menu_scheduled[2020-12-23 08:00:00 PST-expected_items2]>






2023-12-14 02:00:58.385 [info]









2023-12-14 02:00:58.385 [info]
<Function test_change_item[available and inventory]>
<Function test_change_item[available => unavailable]>
<Function test_change_item[available => unavailable, but in DB item has -unavailable]>
<Function test_change_item[available => available]>
<Function test_change_item[unavailable => available]>
<Function test_change_item[unavailable => available, but has no -unavailable in DB]>
<Function test_change_item[unavailable => unavailable]>
<Function test_change_topping[available => unavailable]>

2023-12-14 02:00:58.385 [info] <Function test_change_topping[available => available]>
<Function test_change_topping[unavailable => available]>
<Function test_change_topping[unavailable => unavailable]>



2023-12-14 02:00:58.385 [info]







2023-12-14 02:00:58.385 [info]





2023-12-14 02:00:58.385 [info]


2023-12-14 02:00:58.385 [info]






2023-12-14 02:00:58.385 [info]





2023-12-14 02:00:58.385 [info]





2023-12-14 02:00:58.385 [info]





2023-12-14 02:00:58.385 [info]






2023-12-14 02:00:58.385 [info]


<Function test_custom_items__autocomplete_enabled[Usual item must not be completed]>
<Function test_custom_items__autocomplete_enabled[Custom item must be completed]>
<Function test_custom_items__autocomplete_disabled[Usual item must not be completed]>
<Function test_custom_items__autocomplete_disabled[Custom item must not be completed]>

2023-12-14 02:00:58.385 [info]
<Function test_calculate_active_now[menu_general-2020-12-23 08:00:00 PST-True]>
<Function test_calculate_active_now[menu_custom2-2020-12-23 08:00:00 PST-False]>
<Function test_calculate_active_now[menu_custom1_scheduled-2020-12-21 08:00:00 PST-True]>
<Function test_calculate_active_now[menu_custom1_scheduled-2020-12-22 18:00:00 PST-True]>
<Function test_calculate_active_now[menu_custom1_scheduled-2020-12-23 08:00:00 PST-False]>
<Function test_reduce_inventory_amount[item1-5-item_expected0-False]>
<Function test_reduce_inventory_amount[item1_inventory_6-5-item_expected1-False]>
<Function test_reduce_inventory_amount[item1_inventory_4-5-item_expected2-True]>
<Function test_reduce_inventory_amount[item1_out_of_stock-5-item_expected3-False]>








<Function test_parse_topping_price[$1.00-100]>
<Function test_parse_topping_price[$.1.00-100]>
<Function test_parse_topping_price[$.10-10]>
<Function test_parse_topping_price[$.101-10]>
<Function test_parse_topping_price[$.10 Word-100]>
<Function test_parse_topping_price[$.10\nWord-10]>
<Function test_parse_topping_price[$.10 Word-101]>
<Function test_parse_topping_price[None-0]>
<Function test_parse_topping_price[-0]>
<Function test_parse_topping_price[Word-0]>
<Function test_parse_topping_price[$-1.00-100]>


2023-12-14 02:00:58.386 [info]






<Module revi/orders/tests/integration/api/test_order_groups_api.py>

<Module revi/orders/tests/integration/api/test_ordering_settings_api.py>




<Module revi/orders/tests/integration/api/test_others_api.py>













<Function test_receipt_data[id2]>
<Function test_receipt_data[uuid]>
<Function test_receipt_data[transactionId]>
















2023-12-14 02:00:58.386 [info]


















<Function test_complete_order__completed_at_saves_local_time[business-localnow0]>
<Function test_complete_order__completed_at_saves_local_time[business_new_york-localnow1]>




















<Function test_filter__include_third_party[No query - returns only Revi's orders]>
<Function test_filter__include_third_party[Include third party]>
<Function test_filter__include_third_party[Do not include third party]>
<Function test_list_filter__state[ACTIVE]>
<Function test_list_filter__state[CANCELLED]>


2023-12-14 02:00:58.386 [info]







<Function test_post_and_get_order[/api/orders/-True-order_with_list_of_modifiers-expected0]>
<Function test_post_and_get_order[/api/orders/-True-order_customer_uuid-expected1]>
<Function test_post_and_get_order[/api/orders/calculate/-False-usual_order-expected2]>
<Function test_post_and_get_order[/api/orders/calculate/-False-order_partner_reward_enabled-order_partner_reward_calculated]>
<Function test_post_and_get_order[/api/orders/-True-order_10_cents-order_10_cents_response_saved]>
<Function test_post_and_get_order[/api/orders/calculate/-False-order_10_cents-order_10_cents_response_calculated]>
<Function test_post_and_get_order[/api/orders/-True-order_10_cents_not_finished-order_10_cents_response_saved_not_finished]>
<Function test_post_and_get_order[/api/orders/-True-kiosk_order-expected7]>
<Function test_post_and_get_order[/api/orders/-True-order_reward_free_item_from_category-order_reward_free_item_from_category_response]>
<Function test_post_and_get_order[/api/orders/calculate/-False-order_delivery-expected9]>
<Function test_post_and_get_order[Order payed with Physical Gift Card]>
<Function test_post_and_get_order[Order Digital gift card and payed with Physical Gift Card too]>

2023-12-14 02:00:58.387 [info] <Function test_post_and_get_order[Order Digital and Physical gift card]>
<Function test_get[uuid]>
<Function test_get[id2]>





<Function test_third_party_from_pos[Save]>
<Function test_third_party_from_pos[Calculate]>
<Function test_third_party_from_pos[Save but not complete]>





<Function test_create_order_autofill_without_some_customer_info[email-expected_response0]>
<Function test_create_order_autofill_without_some_customer_info[phone-expected_response1]>
<Function test_create_order_autofill_without_some_customer_info[name-expected_response2]>

<Function test_order_calculate_autofill_customer_without_some_customer_info[email-expected_response0]>
<Function test_order_calculate_autofill_customer_without_some_customer_info[phone-expected_response1]>
<Function test_order_calculate_autofill_customer_without_some_customer_info[name-expected_response2]>
<Function test_create_order_with_upsell[Give the discount for upsell]>
<Function test_create_order_with_upsell[Do not give the discount if no upsell in order]>
<Function test_create_order_with_upsell[Do not give the discount if the feature is disabled]>
<Function test_create_order_with_upsell[Do not give the discount if the order with upsell comes from Order Online]>


<Function test_pay_cash__success[No cash info]>
<Function test_pay_cash__success[No change]>
<Function test_pay_cash__success[With 70 cents change]>
<Function test_pay_cash__error[Field required - customer_gives_cents]>
<Function test_pay_cash__error[Field required - customer_gets_back_cents]>
<Function test_pay_cash__error[Customer gives less than order total]>
<Function test_pay_cash__error[Customer gets backs more than gives]>
<Function test_pay_later[card]>
<Function test_pay_later[cash]>
<Function test_payment_method_supported[cash-card-415]>
<Function test_payment_method_supported[card-cash-0]>


<Function test_pay_stripe_card[Create new payment intent if was CASH order before]>
<Function test_pay_stripe_card[Create new payment intent with associated customer]>
<Function test_pay_stripe_card[Update existed payment intent]>
<Function test_pay_stripe_failed[orders - has been paid]>
<Function test_pay_stripe_check[stripe_payment_intent_succeeded-PAID-payment_info_expected0-False]>
<Function test_pay_stripe_check[stripe_payment_intent_processing-UNPAID-None-False]>
<Function test_pay_stripe_check[stripe_payment_intent_requires_capture-PAID-payment_info_expected2-True]>
<Function test_stripe_for_pos_order[Pay via card reader (usual method)]>
<Function test_stripe_for_pos_order[Pay via card number]>



<Function test__success_for_pickup_time_in_custom_pickup_bands[/api/orders/]>
<Function test__success_for_pickup_time_in_custom_pickup_bands[/api/orders/calculate/]>
<Function test__fail[Pickup time out of the custom pickup bands is not allowed-/api/orders/-False]>
<Function test__fail[Pickup time out of the custom pickup bands is not allowed-/api/orders/calculate/-True]>
<Function test__fail[ASAP pickup (represented via None) is not allowed for custom pickup slots-/api/orders/-False]>
<Function test__fail[ASAP pickup (represented via None) is not allowed for custom pickup slots-/api/orders/calculate/-True]>






<Function test_get__number_of_queries_constant[1]>
<Function test_get__number_of_queries_constant[5]>







<Function test_refund__stripe[Non authorized]>
<Function test_refund__stripe[Authorized]>

<Function test_refund_different_cases_of_cart_info[None should be returned if card brand not provided]>
<Function test_refund_different_cases_of_cart_info[None should be returned if card last4 not provided]>
<Function test_refund_different_cases_of_cart_info[None should be returned if card brand and last4 not provided]>
<Function test_refund_different_cases_of_cart_info[None should be returned if payment info not provided]>
<Function test_refund_different_cases_of_cart_info[Should return card data if both brand and last4 are provided]>

<Function test_get_orders_pickup_slots[business-expected0]>
<Function test_get_orders_pickup_slots[business_new_york-expected1]>


<Function test_order_estimate_wait_time[business-expected0]>
<Function test_order_estimate_wait_time[business_wait_time_categories-expected1]>


<Function test_create_order[business-localnow0]>
<Function test_create_order[business_new_york-localnow1]>
<Function test_update_order[Order with one line, KIOSK]>
<Function test_update_order[Pay via Gift Card - 10$ paid, some dollars left0]>

2023-12-14 02:00:58.388 [info] <Function test_update_order[Pay via Gift Card (with hyphens) - 10$ paid, some dollars left]>
<Function test_update_order[Order with one line, KIOSK, CASH]>
<Function test_update_order[Order with one line, Order Ahead]>
<Function test_update_order[Order with one line, User App]>
<Function test_update_order[Order with one line, POS]>
<Function test_update_order[order_with_toppings_and_instructions-0-expected7-False]>
<Function test_update_order[Order no items - CAN calculate it]>
<Function test_update_order[Order no items - CAN NOT save it]>
<Function test_update_order[order_tips_percent-0-expected10-False]>
<Function test_update_order[order_pickup_time-0-expected11-False]>
<Function test_update_order[order_pickup_time_ahead-0-expected12-False]>
<Function test_update_order[order_with_discount_dollars-0-expected13-False]>
<Function test_update_order[order_with_discount_dollars_more_than_subtotal-0-expected14-False]>
<Function test_update_order[order_with_discount_percent-0-expected15-False]>
<Function test_update_order[order_with_discount_free_3_items_2_only-0-expected16-False]>
<Function test_update_order[order_with_discount_free_3_items_4_in_order-0-expected17-False]>
<Function test_update_order[order_with_similar_items-0-expected18-False]>
<Function test_update_order[Loyalty is applied, dry=False]>
<Function test_update_order[Loyalty covered whole order, dry=False]>
<Function test_update_order[Loyalty is not applied, customer hasn't provided phone number]>
<Function test_update_order[Loyalty is applied, dry=True]>
<Function test_update_order[Order with custom item POS]>
<Function test_update_order[Order with custom item - KIOSK is not allowed]>
<Function test_update_order[Out Of Stock Item in cart]>
<Function test_update_order[Archived (Deleted) Item in cart]>
<Function test_update_order[Item is not available due to Custom Menu]>
<Function test_update_order[Too many quantity is chosen]>
<Function test_update_order[Topping out of stock]>
<Function test_update_order[Archived topping]>
<Function test_update_order[With 2 vouchers]>
<Function test_update_order[Item is added as upsell]>
<Function test_update_order[Reward - applied 1 free item from category]>
<Function test_update_order[Reward - applied 2 free item from category, but only 1 in the order]>
<Function test_update_order[Reward - can not apply reward]>
<Function test_update_order[Third party - increased total]>
<Function test_update_order[Third party - decreased total]>
<Function test_update_order[Buy Digital Gift Card and one item]>
<Function test_update_order[Pay via Gift Card - 10$ paid, some dollars left1]>
<Function test_update_order[Pay via Gift Card - pay everything]>
<Function test_update_order[Invalid code]>
<Function test_update_order[Discount code for orders with > $15 Subtotal]>
<Function test_update_order[Order for delivery]>
<Function test_update_order[Order for scheduled delivery]>
<Function test_update_order[Delivery - item is not available for delivery]>
<Function test_update_order[Delivery - minimum subtotal for delivery order]>
<Function test_update_order[Delivery - allowed if 'dry' - we use it as 'check address' query]>
<Function test_update_order[Delivery - no customer fee]>
<Function test_update_order[Discount, usage limit per customer - verification required]>
<Function test_update_order[Discount, usage limit per customer - verified]>
<Function test_update_order[Discount, usage limit per customer - used already]>
<Function test_update_order[Two taxes must be summarized for an item]>








<Function test_activate[business-localnow0]>
<Function test_activate[business_new_york-localnow1]>




<Function test_mark_paid_from_unpaid[order.v2 with pickup time]>
<Function test_mark_paid_from_unpaid[order.v2 ASAP]>
<Function test_mark_paid_from_unpaid[order.v2 without transaction id]>
<Function test_mark_paid_from_unpaid[order.v2 WITH transaction id]>
<Function test_mark_paid_from_unpaid[order.v2 Kiosk with order number]>
<Function test_mark_paid_from_unpaid[order.v2 WOA with order number]>
<Function test_pay_later_only_for_pos[0-True]>
<Function test_pay_later_only_for_pos[3-True]>
<Function test_pay_later_only_for_pos[1-True]>
<Function test_pay_later_only_for_pos[2-False]>




<Function test_send_sms[Kiosk - For Here]>
<Function test_send_sms[PICKUP]>
<Function test_send_sms[Next days pickup]>
<Function test_send_sms[Web Order Online]>
<Function test_send_sms[UserApp]>
<Function test_send_sms[Any source, disabled wait time]>

<Function test_send_high_volume[20000-True]>
<Function test_send_high_volume[19900-False]>





<Function test_online_order_number_reset[second order per day]>
<Function test_online_order_number_reset[first order per day]>
<Function test_mark_as_cash_pay_later_orders[Completed more that 6 hours order MUST change its payment method to cash]>
<Function test_mark_as_cash_pay_later_orders[Completed less that 6 hours order MUST keep the same payment method]>
<Function test_mark_as_cash_pay_later_orders[Do not change pay later active orders]>
<Function test_mark_as_cash_pay_later_orders[Do not change paid orders]>
<Function test_mark_as_cash_pay_later_orders[Do not change unpaid orders]>












<Function test_notify_via_pusher_v1[Active order]>
<Function test_notify_via_pusher_v1[Scheduled order]>
<Function test_notify_via_pusher_v1[Completed order]>





<Function test_smart_tip_amounts[Order $6 - dollars]>
<Function test_smart_tip_amounts[Order $7 - percents]>



<Function test_estimate_by_buckets[0-expected0]>
<Function test_estimate_by_buckets[1-expected1]>
<Function test_estimate_by_buckets[3-expected2]>
<Function test_estimate_by_buckets[4-expected3]>
<Function test_estimate_by_buckets[6-expected4]>
<Function test_estimate_by_buckets[8-expected5]>
<Function test_estimate_by_buckets[18-expected6]>





<Function test_OrderFilter__filters[created_at]>
<Function test_OrderFilter__filters[date]>
<Function test_OrderFilter__filters[time]>
2023-12-14 02:00:58.388 [info]
<Function test_OrderFilter__filters[source]>
<Function test_OrderFilter__filters[source - 'order-ahead' includes 'user-app']>
<Function test_OrderFilter__filters[search_string - by customer name]>
<Function test_OrderFilter__filters[search_string - by order number]>
<Function test_OrderFilter__filters[search_string - by total amount]>
<Function test_OrderFilter__filters[is_refunded]>
<Function test_OrderFilter__filters[include_third_party - initial (don't include third party)]>
<Function test_OrderFilter__filters[include_third_party - True]>
<Function test_OrderFilter__filters[paymentMethod - DEPRECATED, but for old devices we still support it]>
<Function test_OrderFilter__filters[payment_method]>
<Function test_OrderFilter__filters[payment_method - multiple]>
<Function test_OrderFilter__filters[provider]>












<Function test_use_custom_pickup_bands[Should get all pickup times if NOW earlier than custom bands. ASAP not allowed.]>
<Function test_use_custom_pickup_bands[Should get only slots that comes after NOW if it within bands. ASAP not allowed.]>
<Function test_use_custom_pickup_bands[Should get no slots if NOW goes after custom bands. ASAP not allowed.]>



<Function test_success[UNPAID]>
<Function test_success[PAY_LATER]>
































2023-12-14 02:00:58.388 [info]
<Function test_wrong_source[0]>
<Function test_wrong_source[1]>
<Function test_wrong_source[3]>
<Function test_wrong_source[4]>



<Function test_set_payment_status[UNPAID-PAID-actions0]>
<Function test_set_payment_status[UNPAID-PAY_LATER-actions1]>
<Function test_set_payment_status[PAY_LATER-PAID-actions2]>





2023-12-14 02:00:58.388 [info]







<Function test_create_and_accept[New Pickup ASAP Order]>
<Function test_create_and_accept[None fields]>
<Function test_create_and_accept[Pickup Scheduled Order]>
<Function test_create_and_accept[New Delivery ASAP Order]>
<Function test_create_and_accept[Delivery Scheduled Order]>
<Function test_create_and_accept[Accepted Order]>
2023-12-14 02:00:58.388 [info]










2023-12-14 02:00:58.388 [info]






















<Function test_create[Delivery, ASAP]>
<Function test_create[Delivery, FIXED_TIME]>

2023-12-14 02:00:58.389 [info]











<Function test_dispatcher_called[return_value0-expected0]>
<Function test_dispatcher_called[None-expected1]>






































<Function test_get_prerequisites[No prerequisites]>
<Function test_get_prerequisites[Single terms of service]>
<Function test_get_prerequisites[Multiple terms of service]>




2023-12-14 02:00:58.389 [info]




















2023-12-14 02:00:58.389 [info]







2023-12-14 02:00:58.389 [info]




<Function test_pay_later[stripe]>
<Function test_pay_later[cash]>

<Function test_stripe[type=card]>

2023-12-14 02:00:58.389 [info] <Function test_stripe[type=card-present]>






<Function test_split__money_fields[Split evenly]>
2023-12-14 02:00:58.389 [info]
<Function test_split__money_fields[Split 3 parts not evenly]>














<Function test_get_payout_repayments[No filters]>
<Function test_get_payout_repayments[Only start]>
<Function test_get_payout_repayments[Only end]>

2023-12-14 02:00:58.389 [info] <Function test_get_payout_repayments[Both start and end]>


<Function test_get_payout_repayments_report[No filters]>
<Function test_get_payout_repayments_report[Only start]>
<Function test_get_payout_repayments_report[Only end]>
<Function test_get_payout_repayments_report[Both start and end]>


2023-12-14 02:00:58.389 [info]






2023-12-14 02:00:58.389 [info]
<Function test_get_terms_of_service_by_type[CapitalTermsOfServiceType.ADYEN_CAPITAL]>
<Function test_get_terms_of_service_by_type[CapitalTermsOfServiceType.ADYEN_FOR_PLATFORMS_ADVANCED]>

2023-12-14 02:00:58.389 [info]






2023-12-14 02:00:58.389 [info]






2023-12-14 02:00:58.389 [info]









2023-12-14 02:00:58.389 [info]



<Function test_adyen_signup_business_command__create_account[True-False-False]>
<Function test_adyen_signup_business_command__create_account[False-True-False]>
<Function test_adyen_signup_business_command__create_account[False-False-True]>

2023-12-14 02:00:58.389 [info]






<Function test_create_account_for_partner[No ids is set]>

2023-12-14 02:00:58.389 [info] <Function test_create_account_for_partner[Only legal entity is set]>
<Function test_create_account_for_partner[Legal entity & Account holder are set]>
<Function test_create_account_for_partner[Legal entity & Business Line are set]>
<Function test_create_account_for_partner[All ids set]>


2023-12-14 02:00:58.389 [info]




<Function test_is_account_holder_onboarded[All capabilities allowed]>
<Function test_is_account_holder_onboarded[Capital capabilities not allowed, ignore them]>

2023-12-14 02:00:58.389 [info] <Function test_is_account_holder_onboarded[Capital capabilities not allowed, some basic capability is not allowed]>


<Function test_request_capital_capabilities[No update request]>
<Function test_request_capital_capabilities[Request only getGrantOffers]>
<Function test_request_capital_capabilities[Request only receiveGrants]>
<Function test_request_capital_capabilities[Request all capital capabilities]>



<Function test_is_grant_payout[event0-True]>
<Function test_is_grant_payout[event1-False]>
<Function test_is_grant_payout[event2-False]>
<Function test_is_grant_payout[event3-False]>
<Function test_is_grant_payout[event4-False]>






<Function test_calculate_capital_events__is_all_payouts_repaid[All not repaid]>
<Function test_calculate_capital_events__is_all_payouts_repaid[Some repaid]>
<Function test_calculate_capital_events__is_all_payouts_repaid[All repaid]>

2023-12-14 02:00:58.389 [info]

<Function test_get_acceptance_date_by_tos_type[None-None]>
<Function test_get_acceptance_date_by_tos_type[adyen_for_platforms_advanced_tos_signed_at1-None]>
<Function test_get_acceptance_date_by_tos_type[None-adyen_capital_tos_signed_at2]>
<Function test_get_acceptance_date_by_tos_type[adyen_for_platforms_advanced_tos_signed_at3-adyen_capital_tos_signed_at3]>





<Function test_get_capital_tos_by_type[CapitalTermsOfServiceType.ADYEN_CAPITAL]>
<Function test_get_capital_tos_by_type[CapitalTermsOfServiceType.ADYEN_FOR_PLATFORMS_ADVANCED]>





<Function test_get_not_signed_capital_tos[All signed]>
<Function test_get_not_signed_capital_tos[Only ADYEN_FOR_PLATFORMS_ADVANCED signed]>

2023-12-14 02:00:58.390 [info] <Function test_get_not_signed_capital_tos[Only ADYEN_CAPITAL signed]>
<Function test_get_not_signed_capital_tos[No signed]>


<Function test_get_not_signed_capital_tos_types[None-None-expected_result0]>
<Function test_get_not_signed_capital_tos_types[adyen_capital_tos_signed_at1-None-expected_result1]>
<Function test_get_not_signed_capital_tos_types[None-adyen_for_platforms_advanced_tos_signed_at2-expected_result2]>
<Function test_get_not_signed_capital_tos_types[adyen_capital_tos_signed_at3-adyen_for_platforms_advanced_tos_signed_at3-expected_result3]>






<Function test_get_payout_repayments[No filters]>
<Function test_get_payout_repayments[Only start filter]>
<Function test_get_payout_repayments[Only end filter]>
<Function test_get_payout_repayments[start + end filters]>

2023-12-14 02:00:58.390 [info]


<Function test_get_payout_repayments_report__grant_is_active[Grant is active]>
<Function test_get_payout_repayments_report__grant_is_active[Grant is repaid, but last transaction is not requested]>







2023-12-14 02:00:58.390 [info]
<Function test_get_signed_capital_tos[All signed]>
<Function test_get_signed_capital_tos[Only ADYEN_FOR_PLATFORMS_ADVANCED signed]>
<Function test_get_signed_capital_tos[Only ADYEN_CAPITAL signed]>
<Function test_get_signed_capital_tos[No signed]>


<Function test_is_capital_tos_signed[None-None-False]>
<Function test_is_capital_tos_signed[adyen_capital_tos_signed_at1-None-False]>
<Function test_is_capital_tos_signed[None-adyen_for_platforms_advanced_tos_signed_at2-False]>
2023-12-14 02:00:58.390 [info]
<Function test_is_capital_tos_signed[adyen_capital_tos_signed_at3-adyen_for_platforms_advanced_tos_signed_at3-True]>





2023-12-14 02:00:58.390 [info]

<Function test_request_capital_capabilities[None-True-expected_capital_capabilities_requested_at0]>
<Function test_request_capital_capabilities[capital_capabilities_requested_at1-False-expected_capital_capabilities_requested_at1]>



<Function test_sign_capital_tos__success[accept_terms_of_service_mock_return_value0]>
<Function test_sign_capital_tos__success[accept_terms_of_service_mock_return_value1]>

2023-12-14 02:00:58.390 [info]










2023-12-14 02:00:58.390 [info]







2023-12-14 02:00:58.390 [info]





2023-12-14 02:00:58.390 [info]






2023-12-14 02:00:58.390 [info]

<Function test_post_check__not_paid[Cancelled]>
<Function test_post_check__not_paid[In progress]>
<Function test_post_check__not_paid[Not found]>

2023-12-14 02:00:58.390 [info]





2023-12-14 02:00:58.390 [info]





2023-12-14 02:00:58.390 [info]





2023-12-14 02:00:58.390 [info]




2023-12-14 02:00:58.390 [info]






2023-12-14 02:00:58.390 [info]




<Function test_payout_in_transit[payout_initiated]>
<Function test_payout_in_transit[payout_authorized]>

2023-12-14 02:00:58.390 [info] <Function test_payout_in_transit[payout_booked]>





2023-12-14 02:00:58.390 [info]





2023-12-14 02:00:58.390 [info]







2023-12-14 02:00:58.390 [info]




2023-12-14 02:00:58.390 [info]








<Function test_create_overlapped_shift[Clock in is overlapped]>
<Function test_create_overlapped_shift[Clock out is overlapped]>
<Function test_create_shift_different_day[Yesterday]>
<Function test_create_shift_different_day[Tomorrow]>
<Function test_get_shifts_with_filter[Without filters records in response]>
<Function test_get_shifts_with_filter[Without filters records without clock_out in response]>
<Function test_get_shifts_with_filter[Records before range not in response]>
<Function test_get_shifts_with_filter[Records after range not in response]>
<Function test_get_shifts_with_filter[Records in range in response]>
<Function test_get_shifts_with_filter[Records without clock_out in range if range after clock_in]>
<Function test_get_shifts_with_filter[Records without clock_out not in range if range before clock_in]>




2023-12-14 02:00:58.391 [info]

































2023-12-14 02:00:58.391 [info]

















<Function test_verified_recently_10_minutes[Not verified, 1 minute later]>
<Function test_verified_recently_10_minutes[Not verified, 12 minutes later]>
<Function test_verified_recently_10_minutes[Verified, 1 minute later]>
<Function test_verified_recently_10_minutes[Verified, 12 minutes later]>
<Function test_verified_recently_10_minutes[No verification for the phone number]>


2023-12-14 02:00:58.391 [info]
















2023-12-14 02:00:58.391 [info]


<Function test_sales_report[summary]>
<Function test_sales_report[summary - Empty]>
<Function test_sales_report[day]>
<Function test_sales_report[hour]>
<Function test_sales_report[week]>
<Function test_sales_report[month]>
<Function test_sales_report[per-order]>
<Function test_sales_report_summary_payment_method[cash]>
<Function test_sales_report_summary_payment_method[card]>




<Function test_sales_report_filter_source[kiosk]>

2023-12-14 02:00:58.391 [info] <Function test_sales_report_filter_source[order-ahead]>

<Function test_get_sales_report[paymentMethod]>
<Function test_get_sales_report[payment_method]>













2023-12-14 02:00:58.391 [info]














<Function test_list_by_phone[name]>
<Function test_list_by_phone[phone]>
2023-12-14 02:00:58.391 [info]












<Function test_calculate_earned_stamps[Reward system - dollar spent0]>

2023-12-14 02:00:58.391 [info] <Function test_calculate_earned_stamps[partner_reward_system_dollar_spent-order_21_dollars_3_stamps_used-4]>
<Function test_calculate_earned_stamps[Reward system - dollar spent1]>
<Function test_calculate_earned_stamps[Reward system - dollar spent, short number]>
<Function test_calculate_earned_stamps[No reward system]>








<Function test_tier[0-sampler-revi_regular]>

2023-12-14 02:00:58.391 [info] <Function test_tier[400-sampler-revi_regular]>
<Function test_tier[501-revi_regular-revi_patron]>
<Function test_tier[1500-revi_regular-revi_patron]>
<Function test_tier[1501-revi_patron-None]>
<Function test_tier[2500-revi_patron-None]>








2023-12-14 02:00:58.391 [info]








<Function test_make_purchase[Order with all actions]>
<Function test_make_purchase[Without tips only]>
<Function test_make_purchase[Order with no actions - only first_in_store_order]>
<Function test_make_purchase_tiers[POS $0-$500]>
<Function test_make_purchase_tiers[POS $51-$1500]>
<Function test_make_purchase_tiers[POS $151+0]>
<Function test_make_purchase_tiers[POS $0-$501]>
<Function test_make_purchase_tiers[POS $51-$1501]>

2023-12-14 02:00:58.391 [info] <Function test_make_purchase_tiers[POS $151+1]>
<Function test_make_purchase_tiers[KIOSK $0-$50]>
<Function test_make_purchase_tiers[KIOSK $51-$150]>
<Function test_make_purchase_tiers[KIOSK $151+]>
<Function test_make_purchase_tiers[ORDER_AHEAD $0-$150]>
<Function test_make_purchase_tiers[ORDER_AHEAD $151-$300]>
<Function test_make_purchase_tiers[ORDER_AHEAD $300+]>
<Function test_make_purchase_tiers[USER_APP $0-$150]>
<Function test_make_purchase_tiers[USER_APP $151-$300]>
<Function test_make_purchase_tiers[USER_APP $300+]>
<Function test_make_purchase_first_order[1-expected0]>
<Function test_make_purchase_first_order[0-expected1]>
<Function test_make_purchase_first_order[2-expected2]>

2023-12-14 02:00:58.392 [info]











<Function test_reset_month[Do not reset]>
<Function test_reset_month[Reset date yesterday]>
<Function test_reset_month[Reset date today]>







<Function test_continuous_action_tiered[sampler, 10 points]>
<Function test_continuous_action_tiered[regular, 11 points]>










<Function test_list[All items]>
<Function test_list[Active items]>
<Function test_list[Not active items]>














2023-12-14 02:00:58.392 [info]





































<Function test_get_sales_representative_by_pin__inner_error[NotFound-404]>
<Function test_get_sales_representative_by_pin__inner_error[UnprocessableEntityException-422]>


2023-12-14 02:00:58.392 [info]














2023-12-14 02:00:58.392 [info]











2023-12-14 02:00:58.392 [info]




<Function test_send_docusign_contract_sign_url[SMS-SignupStepNotificationPreferredTransport.SMS]>
<Function test_send_docusign_contract_sign_url[EMAIL-SignupStepNotificationPreferredTransport.EMAIL]>




<Function test_send_plaid_payment_link[SMS-SignupStepNotificationPreferredTransport.SMS]>

2023-12-14 02:00:58.392 [info] <Function test_send_plaid_payment_link[EMAIL-SignupStepNotificationPreferredTransport.EMAIL]>












2023-12-14 02:00:58.392 [info]









2023-12-14 02:00:58.392 [info]








2023-12-14 02:00:58.392 [info]






2023-12-14 02:00:58.392 [info]








2023-12-14 02:00:58.392 [info]








2023-12-14 02:00:58.392 [info]








2023-12-14 02:00:58.392 [info]









2023-12-14 02:00:58.392 [info]






<Function test_get_first_supported_business_type[One and supported]>
<Function test_get_first_supported_business_type[Supported and unsupported mix]>

2023-12-14 02:00:58.392 [info]







2023-12-14 02:00:58.392 [info]
























2023-12-14 02:00:58.392 [info]











<Function test_get_docusign_contract_sign_url__already_signed_via_other_service[date_of_signing-contract_field_value0]>
<Function test_get_docusign_contract_sign_url__already_signed_via_other_service[customer_agreement_url-https://some-document-service.com/revi-customer-contract-123]>
<Function test_get_docusign_contract_sign_url__already_signed_via_other_service[signature-John Black]>












2023-12-14 02:00:58.393 [info]























2023-12-14 02:00:58.393 [info]










<Function test_create_salesforce_lead_task__success[Single business type]>
<Function test_create_salesforce_lead_task__success[Multiple business types]>

<Function test_create_salesforce_lead_task__unknown_salesforce_error[Unknown error code]>
<Function test_create_salesforce_lead_task__unknown_salesforce_error[Unknown error content format - index error]>

2023-12-14 02:00:58.393 [info] <Function test_create_salesforce_lead_task__unknown_salesforce_error[Unknown error content format - key error]>
<Function test_create_salesforce_lead_task__unknown_salesforce_error[Unknown error content format - no record.Id]>
<Function test_create_salesforce_lead_task__unknown_salesforce_error[Unknown error]>


<Function test_save_docusign_signature_task[All signature fields empty]>
<Function test_save_docusign_signature_task[Only signature is fulfilled]>
<Function test_save_docusign_signature_task[Only date is fulfilled]>
<Function test_save_docusign_signature_task[Only URL is fulfilled]>
<Function test_save_docusign_signature_task[All fields fulfilled]>



2023-12-14 02:00:58.393 [info]












2023-12-14 02:00:58.393 [info]











2023-12-14 02:00:58.393 [info]








2023-12-14 02:00:58.393 [info]









2023-12-14 02:00:58.393 [info]






2023-12-14 02:00:58.393 [info]







2023-12-14 02:00:58.393 [info]








2023-12-14 02:00:58.393 [info]






<Function test_setup_intent_id_is_empty[]>
<Function test_setup_intent_id_is_empty[None]>

2023-12-14 02:00:58.393 [info]


<Function test_customer_has_no_sources[mock_return_value0]>
<Function test_customer_has_no_sources[mock_return_value1]>


<Function test_customer_has_no_payment_methods[mock_return_value0]>
<Function test_customer_has_no_payment_methods[mock_return_value1]>

2023-12-14 02:00:58.393 [info]

<Function test_no_payment_method[No payment method id]>
<Function test_no_payment_method[data is an empty list]>
<Function test_no_payment_method[No data in response]>



2023-12-14 02:00:58.393 [info]




<Function test_provider_phone_number_us[303]>
<Function test_provider_phone_number_us[719]>
<Function test_provider_phone_number_us[720]>
<Function test_provider_phone_number_us[970]>

2023-12-14 02:00:58.393 [info] <Module dash2/tests/api/serializers/test_reports_serializers.py>




<Function test_total[Two elements with 0$ price]>
<Function test_total[Negative cart always 0]>
<Function test_total[Cart with once and monthly prices]>

2023-12-14 02:00:58.393 [info]



<Function test_override[None-expected0]>
<Function test_override[America/Los_Angeles-expected1]>
<Function test_override[America/Phoenix-expected2]>
<Function test_override[America/New_York-expected3]>

2023-12-14 02:00:58.393 [info]








2023-12-14 02:00:58.393 [info]














<Function test_reminder_send__sms_not_sent[Shouldn't send for order with thirdparty source]>
<Function test_reminder_send__sms_not_sent[Shouldn't send for order that has reference to thirdparty service]>
<Function test_reminder_send__sms_not_sent[Shouldn't send for order that created today]>
<Function test_reminder_send__sms_not_sent[Shouldn't send for order that will be picked up less than 2 days]>
<Function test_reminder_send__sms_not_sent[Shouldn't send for order that will be picked up today]>
<Function test_reminder_send__sms_not_sent[Shouldn't send for order that will be picked up after more than 2 days]>
<Function test_reminder_send__sms_sent[Should send for order that created yesterday and pickup at day after tomorrow-2-False]>
<Function test_reminder_send__sms_sent[Should send for order that created yesterday and pickup at day after tomorrow-0-False]>
<Function test_reminder_send__sms_sent[Should send for order that created yesterday and pickup at day after tomorrow-1-False]>
<Function test_reminder_send__sms_sent[Should send for order that created yesterday and pickup at day after tomorrow-3-False]>

2023-12-14 02:00:58.394 [info]


















<Module revi/communication/tests/sms/test_base_sms.py>

<Module revi/communication/tests/sms/test_order_sms.py>




2023-12-14 02:00:58.394 [info]















2023-12-14 02:00:58.394 [info]

<Function test_get_discount_name[$ off, 0 cents]>
<Function test_get_discount_name[$ off with cents]>
<Function test_get_discount_name[% off]>
<Function test_get_discount_name[Items free]>
<Function test_get_discount_name[$ off from category]>
<Function test_get_full_name[Specific business discount]>
<Function test_get_full_name[Any business discount]>

2023-12-14 02:00:58.394 [info]






<Function test_discount_from_category___no_category_in_order__not_applied[$]>
<Function test_discount_from_category___no_category_in_order__not_applied[%]>
<Function test_discount_from_category___no_category_in_order__not_applied[free]>

2023-12-14 02:00:58.394 [info] <Function test_no_discount_at_gift_card__no_applied[$]>
<Function test_no_discount_at_gift_card__no_applied[%]>
<Function test_no_discount_at_gift_card__no_applied[free]>









2023-12-14 02:00:58.394 [info]


<Function test_make_bullet_list[pricing0-\u2022 Price1;\n\u2022 Price2]>
<Function test_make_bullet_list[pricing1-N/A]>




<Function test_check_signer_has_signed[completed-True]>
<Function test_check_signer_has_signed[delivered-False]>

2023-12-14 02:00:58.394 [info]










2023-12-14 02:00:58.394 [info]









2023-12-14 02:00:58.394 [info]


<Function test_get_canceller[Revi - KIOSK0]>
<Function test_get_canceller[Revi - KIOSK1]>
<Function test_get_canceller[Revi - POS]>
<Function test_get_canceller[Revi - USERAPP]>
<Function test_get_canceller[KitchenHub]>
<Function test_get_canceller[Otter]>
<Function test_get_canceller[Cancelled but visible on KDS yet]>

2023-12-14 02:00:58.394 [info] <Module revi/orders/tests/unit/domain/test_order_payments.py>









2023-12-14 02:00:58.394 [info]








2023-12-14 02:00:58.394 [info]








<Module revi/payments/tests/unit/test_order_pay_later.py>
2023-12-14 02:00:58.394 [info]


















<Function test_error__with_event_details[sync]>
<Function test_error__with_event_details[async]>
<Function test_error__no_event_details[sync]>
<Function test_error__no_event_details[async]>



2023-12-14 02:00:58.394 [info]

<Function test_generate_service_id[Start of the day - 1]>
<Function test_generate_service_id[Start of the day - 2]>
<Function test_generate_service_id[During the day - 1]>
<Function test_generate_service_id[During the day - 2]>
<Function test_generate_service_id[End of the day - 1]>
<Function test_generate_service_id[End of the day - 2]>







2023-12-14 02:00:58.394 [info]







<Function test_get_or_create_terms_of_service__success[CapitalTermsOfServiceType.ADYEN_CAPITAL-adyenCapital]>
<Function test_get_or_create_terms_of_service__success[CapitalTermsOfServiceType.ADYEN_FOR_PLATFORMS_ADVANCED-adyenForPlatformsAdvanced]>

2023-12-14 02:00:58.394 [info]







2023-12-14 02:00:58.394 [info]









<Function test_name[Any Order]>
<Function test_name[Specific place]>



















<Function test_valid_data[Company]>
<Function test_valid_data[Sole proprietor]>
<Function test_invalid_data[Company type, but sole is given]>

2023-12-14 02:00:58.395 [info] <Function test_invalid_data[Sole type, but company is given]>
<Function test_invalid_data[Both company and sole are given]>








<Function test_valid_data[For any business type except 'Other' business_type_custom is not required]>
<Function test_valid_data[custom business type is mandatory if 'Other' is provided as business type]>
<Function test_invalid_data[Business type not from business type list is not allowed]>
<Function test_invalid_data[Business type custom should be set if business type custom is other]>

<Function test_start_less_than_end__both_positive__valid[Average customers count field]>
<Function test_start_less_than_end__both_positive__valid[Average bill field]>
<Function test_end_is_none__start_is_positive__valid[Average customers count field]>
<Function test_end_is_none__start_is_positive__valid[Average bill field]>
<Function test_start_is_negative__not_valid[Average customers count field]>
<Function test_start_is_negative__not_valid[Average bill field]>
<Function test_start_is_null__not_valid[Average customers count field]>
<Function test_start_is_null__not_valid[Average bill field]>
<Function test_end_is_negative__not_valid[Average customers count field]>
<Function test_end_is_negative__not_valid[Average bill field]>
<Function test_start_is_bigger_than_end__both_positive__not_valid[Average customers count field]>
<Function test_start_is_bigger_than_end__both_positive__not_valid[Average bill field]>

2023-12-14 02:00:58.395 [info]



<Function test_qualification_serializer__invalid_data[Too long name provided]>
<Function test_qualification_serializer__invalid_data[Too long business_name provided]>
<Function test_qualification_serializer__invalid_data[Preferable communication not from list of choices is not allowed]>
<Function test_qualification_serializer__invalid_data[Count of locations should be greater than 0]>

<Function test_data_not_provided__not_allowed[email]>
<Function test_data_not_provided__not_allowed[phone_number]>
<Function test_data_is_empty_string__not_allowed[email]>
<Function test_data_is_empty_string__not_allowed[phone_number]>
<Function test_data_is_none__not_allowed[email]>
<Function test_data_is_none__not_allowed[phone_number]>

2023-12-14 02:00:58.395 [info]











2023-12-14 02:00:58.395 [info]
<Function test_stripe_error_to_response[Common error]>
<Function test_stripe_error_to_response[fields error]>
<Function test_stripe_error_to_response[Sole from individual error]>






2023-12-14 02:00:58.395 [info]










2023-12-14 02:00:58.395 [info]









<Function test_valid_cases__return_result[Returns max string length value from choices if max_length arg not provided]>
2023-12-14 02:00:58.395 [info]
<Function test_valid_cases__return_result[Returns same value as max_length arg if it's provided and it's greater than max string length from choices]>

<Function test_char_choices_field[If max_length provided is should be used]>
<Function test_char_choices_field[If max_length arg not provided it should be get from choices data]>






2023-12-14 02:00:58.395 [info]



<Function test_date_of_birth_to_internal[01.11.1990-value0]>
<Function test_date_of_birth_to_internal[01/11/1990-value1]>
<Function test_date_of_birth_to_internal[01-11-1990-value2]>
<Function test_date_of_birth_to_representation[01.11.1990-value0]>
<Function test_date_of_birth_failed[random.string.here-ValidationError]>
<Function test_date_of_birth_failed[11-ValidationError]>

2023-12-14 02:00:58.395 [info]

2023-12-14 02:00:58.560 [info] Test server connected to a client.
2023-12-14 02:00:58.575 [debug] data received from python server: Content-Length: 1325927
Content-Type: application/json
Request-uuid: a50f4546-d6ad-4385-83b6-53c46d13495f

In Terminal it shows 2152 tests:

======================== 2152 tests collected in 5.90s =========================

2023-12-14 01:45:16.636 [debug] deferredTill EOT resolved for /home/rodzun/reviNEW/z-dash
2023-12-14 01:45:16.636 [info] Disposing data receiver for /home/rodzun/reviNEW/z-dash and deleting UUID; pytest discovery.

In the extension 1352 tests:
image

All apps have this folder structure:
image

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Dec 14, 2023
@eleanorjboyd
Copy link
Member

Hello again, sorry for the back and forth. I looked through you logs and don't see anything which seems out of place. I explored your original comment where multiple test classes per file caused only the last test class to be found but was able to discover all 4 tests in this example. Does this example work for you? Is there a difference in setup between my example below and your multi-class setup?


# Example of a Python file with multiple classes and their corresponding tests using unittest

# Importing unittest module
import unittest

# First class to be tested
class Calculator:
    def add(self, a, b):
        return a + b

    def subtract(self, a, b):
        return a - b

# Second class to be tested
class StringManipulator:
    def capitalize(self, string):
        return string.capitalize()

    def reverse(self, string):
        return string[::-1]

# Test class for Calculator
class TestCalculator(unittest.TestCase):
    def test_add(self):
        calc = Calculator()
        self.assertEqual(calc.add(2, 3), 5)

    def test_subtract(self):
        calc = Calculator()
        self.assertEqual(calc.subtract(5, 3), 2)

# Test class for StringManipulator
class TestStringManipulator(unittest.TestCase):
    def test_capitalize(self):
        manipulator = StringManipulator()
        self.assertEqual(manipulator.capitalize("hello"), "Hello")

    def test_reverse(self):
        manipulator = StringManipulator()
        self.assertEqual(manipulator.reverse("hello"), "olleh")

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 14, 2023
@rodzun
Copy link
Author

rodzun commented Dec 14, 2023

No worries, thank you for the tech support.
Testing a little bit, I found out that the issue arises when using classes with pytest. It works fine with Unittest, it does not when "converting" to pytest. When doing so, the extension only finds tests from the last class. The bug is consistent with other colleagues as well.

# First class to be tested
class Calculator:
    def add(self, a, b):
        return a + b

    def subtract(self, a, b):
        return a - b

# Second class to be tested
class StringManipulator:
    def capitalize(self, string):
        return string.capitalize()

    def reverse(self, string):
        return string[::-1]

# Test functions for Calculator
class TestCalculator:
    def test_add(self):
        calc = Calculator()
        assert calc.add(2, 3) == 5

    def test_subtract(self):
        calc = Calculator()
        assert calc.subtract(5, 3) == 2

# Test functions for StringManipulator
class TestStringManipulator:
    def test_capitalize(self):
        manipulator = StringManipulator()
        assert manipulator.capitalize("hello") == "Hello"

    def test_reverse():
        manipulator = StringManipulator()
        assert manipulator.reverse("hello") == "olleh"

In this image you can see that only the last two tests are shown:
image

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Dec 14, 2023
@eleanorjboyd
Copy link
Member

hm I am still seeing all them still be discovered with the code snippet you have above. Are you settings the same as mine? What type of machine are you on? Also if you set your logs to trace you should see a payload with all the test data, can you send over that / just your whole logs? Thanks

Screenshot 2023-12-14 at 4 09 20 PM Screenshot 2023-12-14 at 4 09 06 PM

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 14, 2023
@rodzun
Copy link
Author

rodzun commented Dec 15, 2023

These are my settings:

{
    "python.testing.pytestArgs": [
        "zdash"
    ],
    "python.testing.unittestEnabled": false,
    "python.testing.pytestEnabled": true,
    "python.analysis.logLevel": "Trace"
}

My log is huge so I send you the related parts, let me know if you still need all the logs:

2023-12-15 15:11:37.300 [info] <Package api>
  <Module test_test.py>
    <Class TestCalculator>
        <Function test_add>
        <Function test_subtract>
    <Class TestStringManipulator>
2023-12-15 15:11:37.300 [info] 
        <Function test_capitalize>
        <Function test_reverse>
{"name": "test_test.py", "path": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py", "type_": "file", "id_": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py", "children": [{"name": "test_add", "path": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py", "lineno": "21", "type_": "test", "id_": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py::TestCalculator::test_add", "runID": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py::TestCalculator::test_add"}, {"name": "test_subtract", "path": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py", "lineno": "25", "type_": "test", "id_": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py::TestCalculator::test_subtract", "runID": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py::TestCalculator::test_subtract"}]}, {"name": "test_test.py", "path": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py", "type_": "file", "id_": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py", "children": [{"name": "test_capitalize", "path": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py", "lineno": "31", "type_": "test", "id_": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py::TestStringManipulator::test_capitalize", "runID": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py::TestStringManipulator::test_capitalize"}, {"name": "test_reverse", "path": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py", "lineno": "35", "type_": "test", "id_": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.py::TestStringManipulator::test_reverse", "runID": "/home/rodzun/reviNEW/z-dash/zdash/revi/personnel/tests/api/test_test.

All tests seems to be found in the logs, but they are not shown in the left tree panel, and certainly are not counted or tested there.
image

I'm using Windows 11 with WSL2. VSCode 1.85.0

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Dec 15, 2023
@eleanorjboyd
Copy link
Member

Could you try my example project and see if it works for you here? Are any of my settings / design wrong here for your setup?

test_classes22643.zip

@eleanorjboyd eleanorjboyd added the info-needed Issue requires more information from poster label Dec 19, 2023
@rodzun
Copy link
Author

rodzun commented Dec 21, 2023

Tested it and the issue persists. The logs seem to find all four tests but as you can see in the screenshot it only finds two in the panel in the left.

Python Output 2023-12-21 01:02:11.983 [debug] Testing: Refreshing all test data 2023-12-21 01:02:11.983 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python 2023-12-21 01:02:11.986 [info] Discover tests for workspace name: test_classes22643 - uri: /home/rodzun/test_classes22643 2023-12-21 01:02:11.986 [info] Running discovery for pytest using the new test adapter. 2023-12-21 01:02:11.986 [info] All environment variables set for pytest discovery for workspace /home/rodzun/test_classes22643: {"USER":"rodzun","VSCODE_WSL_EXT_LOCATION":"/mnt/c/Users/RodZun/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.8","SHLVL":"0","HOME":"/home/rodzun","WSL_DISTRO_NAME":"Ubuntu","WAYLAND_DISPLAY":"wayland-0","LOGNAME":"rodzun","NAME":"DESKTOP-NTQQJMV","WSL_INTEROP":"/run/WSL/13377_interop","PULSE_SERVER":"unix:/mnt/wslg/PulseServer","_":"/home/rodzun/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/node","TERM":"xterm-256color","XDG_RUNTIME_DIR":"/mnt/wslg/runtime-dir","DISPLAY":":0","LANG":"C.UTF-8","SHELL":"/bin/bash","PWD":"/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code","WSL2_GUI_APPS_ENABLED":"1","HOSTTYPE":"x86_64","WSLENV":"VSCODE_WSL_EXT_LOCATION/up","VSCODE_HANDLES_SIGPIPE":"true","MOTD_SHOWN":"update-motd","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","VIRTUALENVWRAPPER_WORKON_CD":"1","WORKON_HOME":"/home/rodzun/.virtualenvs","VIRTUALENVWRAPPER_PROJECT_FILENAME":".project","XDG_DATA_DIRS":"/usr/local/share:/usr/share:/var/lib/snapd/desktop","VIRTUALENVWRAPPER_HOOK_DIR":"/home/rodzun/.virtualenvs","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}","VSCODE_CWD":"/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code","ELECTRON_RUN_AS_NODE":"1","VSCODE_IPC_HOOK_CLI":"/mnt/wslg/runtime-dir/vscode-ipc-460424f2-8351-4e1c-92cd-7c0848e8c476.sock","PATH":"/home/rodzun/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/Docker/host/bin:/mnt/c/Users/RodZun/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/heroku/bin:/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/RodZun/AppData/Roaming/npm:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/snap/bin","PYTHONPATH":"/home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles","TEST_UUID":"1567efd3-d875-46b1-843d-de9d22cf7e08","TEST_PORT":"35407"}

2023-12-21 01:02:11.986 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python
2023-12-21 01:02:12.001 [debug] Running pytest discovery with command: -m pytest -p vscode_pytest --collect-only . for workspace /home/rodzun/test_classes22643.
2023-12-21 01:02:12.001 [info] > ~/.virtualenvs/revi310/bin/python -m pytest -p vscode_pytest --collect-only .
2023-12-21 01:02:12.001 [info] cwd: .
2023-12-21 01:02:12.411 [info] ============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-6.2.5, py-1.11.0, pluggy-1.2.0

2023-12-21 01:02:12.417 [info] rootdir: /home/rodzun/test_classes22643
plugins: forked-1.6.0, django-3.10.0, mock-3.11.1, xdist-2.5.0, factoryboy-2.1.0, Faker-19.3.1, requests-mock-1.8.0, datadir-1.3.1, lazy-fixture-0.6.3

2023-12-21 01:02:12.422 [info] collected 4 items

2023-12-21 01:02:12.422 [info]





2023-12-21 01:02:12.424 [info] Test server connected to a client.
2023-12-21 01:02:12.424 [info]
========================== 4 tests collected in 0.01s ==========================

2023-12-21 01:02:12.429 [debug] data received from python server: Content-Length: 1028
Content-Type: application/json
Request-uuid: 1567efd3-d875-46b1-843d-de9d22cf7e08

{"cwd": "/home/rodzun/test_classes22643", "status": "success", "tests": {"name": "test_classes22643", "path": "/home/rodzun/test_classes22643", "type_": "folder", "children": [{"name": "test_many_classes.py", "path": "/home/rodzun/test_classes22643/test_many_classes.py", "type_": "file", "id_": "/home/rodzun/test_classes22643/test_many_classes.py", "children": [{"name": "test_add", "path": "/home/rodzun/test_classes22643/test_many_classes.py", "lineno": "19", "type_": "test", "id_": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add", "runID": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add"}, {"name": "test_subtract", "path": "/home/rodzun/test_classes22643/test_many_classes.py", "lineno": "23", "type_": "test", "id_": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract", "runID": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract"}]}], "id_": "/home/rodzun/test_classes22643"}, "error": []}Content-Length: 42
Content-Type: application/json
Request-uuid: 1567efd3-d875-46b1-843d-de9d22cf7e08

{"command_type": "discovery", "eot": true}
2023-12-21 01:02:12.429 [debug] Firing data received event, {"cwd": "/home/rodzun/test_classes22643", "status": "success", "tests": {"name": "test_classes22643", "path": "/home/rodzun/test_classes22643", "type_": "folder", "children": [{"name": "test_many_classes.py", "path": "/home/rodzun/test_classes22643/test_many_classes.py", "type_": "file", "id_": "/home/rodzun/test_classes22643/test_many_classes.py", "children": [{"name": "test_add", "path": "/home/rodzun/test_classes22643/test_many_classes.py", "lineno": "19", "type_": "test", "id_": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add", "runID": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add"}, {"name": "test_subtract", "path": "/home/rodzun/test_classes22643/test_many_classes.py", "lineno": "23", "type_": "test", "id_": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract", "runID": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract"}]}], "id_": "/home/rodzun/test_classes22643"}, "error": []}
2023-12-21 01:02:12.429 [debug] Firing data received event, {"command_type": "discovery", "eot": true}
2023-12-21 01:02:12.429 [info] ResultResolver EOT received for discovery.
2023-12-21 01:02:12.498 [debug] deferredTill EOT resolved for /home/rodzun/test_classes22643
2023-12-21 01:02:12.498 [info] Disposing data receiver for /home/rodzun/test_classes22643 and deleting UUID; pytest discovery.
2023-12-21 01:02:12.631 [debug] Testing: Resolving item /home/rodzun/test_classes22643
2023-12-21 01:02:12.631 [debug] Testing: Resolving item /home/rodzun/test_classes22643/test_many_classes.py
2023-12-21 01:02:27.806 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python
2023-12-21 01:02:27.809 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python
2023-12-21 01:02:27.823 [info] Server listening on port 33509
2023-12-21 01:02:27.823 [debug] Server started for pytest test ids server and listening on port 33509
2023-12-21 01:02:27.834 [info] All environment variables set for pytest execution in /home/rodzun/test_classes22643 workspace:
{"USER":"rodzun","VSCODE_WSL_EXT_LOCATION":"/mnt/c/Users/RodZun/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.8","SHLVL":"0","HOME":"/home/rodzun","WSL_DISTRO_NAME":"Ubuntu","WAYLAND_DISPLAY":"wayland-0","LOGNAME":"rodzun","NAME":"DESKTOP-NTQQJMV","WSL_INTEROP":"/run/WSL/13377_interop","PULSE_SERVER":"unix:/mnt/wslg/PulseServer","_":"/home/rodzun/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/node","TERM":"xterm-256color","XDG_RUNTIME_DIR":"/mnt/wslg/runtime-dir","DISPLAY":":0","LANG":"C.UTF-8","SHELL":"/bin/bash","PWD":"/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code","WSL2_GUI_APPS_ENABLED":"1","HOSTTYPE":"x86_64","WSLENV":"VSCODE_WSL_EXT_LOCATION/up","VSCODE_HANDLES_SIGPIPE":"true","MOTD_SHOWN":"update-motd","VIRTUALENVWRAPPER_SCRIPT":"/usr/local/bin/virtualenvwrapper.sh","VIRTUALENVWRAPPER_WORKON_CD":"1","WORKON_HOME":"/home/rodzun/.virtualenvs","VIRTUALENVWRAPPER_PROJECT_FILENAME":".project","XDG_DATA_DIRS":"/usr/local/share:/usr/share:/var/lib/snapd/desktop","VIRTUALENVWRAPPER_HOOK_DIR":"/home/rodzun/.virtualenvs","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_NLS_CONFIG":"{"locale":"en","osLocale":"en","availableLanguages":{}}","VSCODE_CWD":"/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code","ELECTRON_RUN_AS_NODE":"1","VSCODE_IPC_HOOK_CLI":"/mnt/wslg/runtime-dir/vscode-ipc-460424f2-8351-4e1c-92cd-7c0848e8c476.sock","PATH":"/home/rodzun/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/Docker/host/bin:/mnt/c/Users/RodZun/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/heroku/bin:/mnt/c/Users/RodZun/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/RodZun/AppData/Roaming/npm:/mnt/c/Users/RodZun/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/snap/bin","PYTHONPATH":"/home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles","TEST_UUID":"aefa4bca-24ed-4544-9e05-544755830dd9","TEST_PORT":"35407","RUN_TEST_IDS_PORT":"33509"}
2023-12-21 01:02:27.834 [info] Running pytest with arguments: /home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/vscode_pytest/run_pytest_script.py --rootdir /home/rodzun/test_classes22643 for workspace /home/rodzun/test_classes22643

2023-12-21 01:02:27.834 [info] > ~/.virtualenvs/revi310/bin/python ~/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/vscode_pytest/run_pytest_script.py --rootdir .
2023-12-21 01:02:27.834 [info] cwd: .
2023-12-21 01:02:28.360 [info] Test server connected to a client.
2023-12-21 01:02:28.362 [debug] data received from python server: Content-Length: 355
Content-Type: application/json
Request-uuid: aefa4bca-24ed-4544-9e05-544755830dd9

{"cwd": "/home/rodzun/test_classes22643", "status": "success", "result": {"/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add": {"test": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add", "outcome": "success", "message": null, "traceback": null, "subtest": null}}, "not_found": null, "error": null}
2023-12-21 01:02:28.362 [debug] Firing data received event, {"cwd": "/home/rodzun/test_classes22643", "status": "success", "result": {"/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add": {"test": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add", "outcome": "success", "message": null, "traceback": null, "subtest": null}}, "not_found": null, "error": null}
2023-12-21 01:02:28.364 [debug] data received from python server: Content-Length: 365
Content-Type: application/json
Request-uuid: aefa4bca-24ed-4544-9e05-544755830dd9

{"cwd": "/home/rodzun/test_classes22643", "status": "success", "result": {"/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract": {"test": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract", "outcome": "success", "message": null, "traceback": null, "subtest": null}}, "not_found": null, "error": null}
2023-12-21 01:02:28.364 [debug] Firing data received event, {"cwd": "/home/rodzun/test_classes22643", "status": "success", "result": {"/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract": {"test": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract", "outcome": "success", "message": null, "traceback": null, "subtest": null}}, "not_found": null, "error": null}
2023-12-21 01:02:28.366 [debug] data received from python server: Content-Length: 42
Content-Type: application/json
Request-uuid: aefa4bca-24ed-4544-9e05-544755830dd9

{"command_type": "execution", "eot": true}
2023-12-21 01:02:28.366 [debug] Firing data received event, {"command_type": "execution", "eot": true}
2023-12-21 01:02:28.366 [info] ResultResolver EOT received for execution.
2023-12-21 01:02:28.386 [info] Client disconnected
2023-12-21 01:02:28.451 [debug] Test run finished, subprocess closed.
2023-12-21 01:02:28.451 [debug] deferredTill EOT resolved
2023-12-21 01:02:28.451 [info] Disposing data receiver for /home/rodzun/test_classes22643 and deleting UUID; pytest execution.
2023-12-21 01:02:32.020 [error] Failed to initialize deactivate script /usr/bin/bash [Error: "/home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/deactivate/bash/envVars.txt" file not created
at Timeout. (/home/rodzun/.vscode-server/extensions/ms-python.python-2023.22.1/out/client/extension.js:2:280966)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)]
2023-12-21 01:02:33.330 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-12-21 01:02:33.330 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python
2023-12-21 01:02:33.331 [debug] Found cached env for /home/rodzun/.virtualenvs/revi310/bin/python
2023-12-21 01:02:46.817 [debug] Worker id 1 exited with code 0

image

image

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Dec 21, 2023
@pnelson-bto
Copy link

I'm also experiencing this same issue.

@eleanorjboyd
Copy link
Member

@rodzun, I am not familiar with the "zdash" arg, what is that for?

@pnelson-bto Did you try the example project I sent? If so what settings or config are different?

Are you both on Windows to Linux using WSL? This could be the problem that is causing the bug

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jan 5, 2024
@pnelson-bto
Copy link

pnelson-bto commented Jan 5, 2024

No, because I only use pytest. I even tried it 2 bare-boned pytest classes, which just asserted that 1 == 1. I am on Ubuntu. This issue seems to be relatively new. I recently performed the latest update on VSCode.

@rodzun
Copy link
Author

rodzun commented Jan 5, 2024

Hi @eleanorjboyd , zdash is just the name of my project and a folder on top of it. I'm using WSL. Updated to last release and still having the issue.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jan 5, 2024
@eleanorjboyd
Copy link
Member

No, because I only use pytest. I even tried it 2 bare-boned pytest classes, which just asserted that 1 == 1. I am on Ubuntu. This issue seems to be relatively new. I recently performed the latest update on VSCode.

The repo should still work as pytest also discovers and executes unittest test cases. You coiuld also send over a minimal repro in your case if that would be easier. Thanks

@eleanorjboyd
Copy link
Member

@rodzun, those logs were helpful, what I am seeing is that pytest sees 4 tests but the payload returned by the subprocess is only 2 (with the class TestCalculator also missing) so somewhere in building the test tree something is going wrong. I see from your logs you have a fair number of plugins, could you try without these and see if it makes a difference? plugins: forked-1.6.0, django-3.10.0, mock-3.11.1, xdist-2.5.0, factoryboy-2.1.0, Faker-19.3.1, requests-mock-1.8.0, datadir-1.3.1, lazy-fixture-0.6.3. If this doesn't work I can recreate your whole setup but the way your error is showing (with half the tests) it doesn't strike me as windows/wsl related. Thanks and let me know

This is your payload returned in a more understandable format

{
    "cwd": "/home/rodzun/test_classes22643",
    "status": "success",
    "tests": {
        "name": "test_classes22643",
        "path": "/home/rodzun/test_classes22643",
        "type_": "folder",
        "children": [
            {
                "name": "test_many_classes.py",
                "path": "/home/rodzun/test_classes22643/test_many_classes.py",
                "type_": "file",
                "id_": "/home/rodzun/test_classes22643/test_many_classes.py",
                "children": [
                    {
                        "name": "test_add",
                        "path": "/home/rodzun/test_classes22643/test_many_classes.py",
                        "lineno": "19",
                        "type_": "test",
                        "id_": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add",
                        "runID": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_add"
                    },
                    {
                        "name": "test_subtract",
                        "path": "/home/rodzun/test_classes22643/test_many_classes.py",
                        "lineno": "23",
                        "type_": "test",
                        "id_": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract",
                        "runID": "/home/rodzun/test_classes22643/test_many_classes.py::TestCalculator::test_subtract"
                    }
                ]
            }
        ],
        "id_": "/home/rodzun/test_classes22643"
    },
    "error": []
}

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jan 25, 2024
@klevytskyi
Copy link

I'm facing the same issue. I'm using pytest and tests from only the last class are shown in sidebar. However, in the Output tab all of them are listed correctly.

@jevnikar
Copy link

This problem has been plaguing me for months. My temporary solution has been to edit the VSCode state file to disable the "pythonTestAdapter" experimental feature.

Now that I've looked through this page and the one for issue #22457, it seems the easiest solution is to just update my pytest plugin from 6.2.x to the latest 8.x.x version - it immediately fixed the issue.

@rodzun
Copy link
Author

rodzun commented Mar 1, 2024

My company updated pytest to 7.4.4 version and it's working correctly now

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Mar 1, 2024
@eleanorjboyd
Copy link
Member

Glad that worked! Our goal is to support all versions of pytest which that teams supports. Could you provide your specific pytest version which was causing the failure? We have added an old 6.2.x version to our CI to run and are not seeing this error as of now.

@eleanorjboyd eleanorjboyd added the info-needed Issue requires more information from poster label Mar 27, 2024
@acmarco
Copy link

acmarco commented Apr 24, 2024

Thanks for all the investigation, everyone. Upgrading to [email protected] worked for me as well.

@Tinuxx
Copy link

Tinuxx commented Apr 25, 2024

My issue might be related. I have a project that uses pytest-lazy-fixture, and the test discovery broke recently after working fine for months. I am using pytest 7.4.4. and the v2024.5.11141012 (pre-release) Python extension. I have this minimum reproducible example:

import pytest
from pytest_lazyfixture import lazy_fixture


@pytest.fixture
def fixture_a():
    return "a"


@pytest.fixture
def fixture_b():
    return "b"


@pytest.fixture
def fixture_c():
    return "c"


class TestA:
    @pytest.fixture(
        scope="class",
        params=[lazy_fixture("fixture_a"), lazy_fixture("fixture_b")],
    )
    def fixt(self, request):
        return request.param

    def test_a(self, fixt):
        assert fixt in ["a", "b"]


class TestB:
    @pytest.fixture(
        scope="class",
        params=[lazy_fixture("fixture_a"), lazy_fixture("fixture_c")],
    )
    def fixt(self, request):
        return request.param

    def test_a(self, fixt):
        assert fixt in ["a", "c"]

The tests tree is incorrect:
image

If I try to go to run/debug/go to test to the ones that are found twice, they all fall under the test that's declared first.

If I switch to the stable Python extension, the tests are discovered and run correctly:

image

@eleanorjboyd
Copy link
Member

Hi @Tinuxx, I am able to repro this issue. I will work on putting in a fix. Thanks!

Copy link

github-actions bot commented Jun 7, 2024

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

Happy Coding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2024
@eleanorjboyd eleanorjboyd reopened this Jun 7, 2024
@mmaday
Copy link

mmaday commented Jun 18, 2024

I'm also seeing this problem over here. Downgrading to v2024.4.1 of the Python extension is my current workaround. When looking through the debug logs, the newer broken extensions are not getting the ResultResolver EOT log messages.

Working on v2024.4.1:

======================== 8431 tests collected in 24.23s ========================

2024-06-18 23:41:26.450 [info] ResultResolver EOT received for discovery.
2024-06-18 23:41:26.450 [info] ResultResolver EOT received for discovery.
...
======================== 8431 tests collected in 24.44s ========================

2024-06-18 23:41:27.776 [info] ResultResolver EOT received for discovery.
2024-06-18 23:41:27.776 [info] ResultResolver EOT received for discovery.
2024-06-18 23:41:28.114 [info] Disposing data receiver for /home/vscode/workspace and deleting UUID; pytest discovery.
2024-06-18 23:41:28.165 [info] Disposing data receiver for /home/vscode/workspace and deleting UUID; pytest discovery.

Broken on v2024.4.1:

2024-06-18 23:30:37.108 [info] ======================== 8431 tests collected in 10.11s ========================

2024-06-18 23:30:37.109 [debug] client emitted close event, connectionCount:  0
2024-06-18 23:30:37.109 [debug] connection count is <= 0, closing the server:  /tmp/python-test-discovery-36c77d1b7d832c04556f.sock
2024-06-18 23:30:37.109 [debug] Test Discovery named pipe /tmp/python-test-discovery-36c77d1b7d832c04556f.sock closed
2024-06-18 23:30:37.109 [debug] Test Discovery named pipe /tmp/python-test-discovery-36c77d1b7d832c04556f.sock disposed
2024-06-18 23:30:38.912 [debug] deferredTill EOT resolved
2024-06-18 23:30:39.156 [debug] deferredTill EOT resolved

@eleanorjboyd
Copy link
Member

Hi @mmaday, could you open a new issue with full repro steps? I am not sure if the problem you are facing is related

@Tinuxx, I am seeing the correct test explorer view now when I try to re-run the sample in the insiders extension- is it working for you?

@Tinuxx
Copy link

Tinuxx commented Jun 28, 2024

@eleanorjboyd I can confirm that the test discovery works and is displayed correctly after switching to pre-release:

image

Thanks! 😄

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jun 28, 2024
@eleanorjboyd
Copy link
Member

Great! Thanks for verifying!

@eleanorjboyd eleanorjboyd added the info-needed Issue requires more information from poster label Jul 1, 2024
Copy link

github-actions bot commented Aug 1, 2024

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

Happy Coding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2024
@eleanorjboyd
Copy link
Member

closing as complete- please comment if that is not the case

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

8 participants