2023-04-10 23:51:39 +03:00
|
|
|
|
{
|
|
|
|
|
"files": [
|
|
|
|
|
"**",
|
|
|
|
|
".*/**"
|
|
|
|
|
],
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"enableFiletypes": [
|
|
|
|
|
"pip-requirements",
|
|
|
|
|
"shellscript",
|
|
|
|
|
"tlaplus_cfg", // file type detected wrong, I'm just trying to match *.cfg
|
|
|
|
|
"toml"
|
|
|
|
|
],
|
2023-04-10 23:51:39 +03:00
|
|
|
|
"ignorePaths": [
|
2023-09-15 03:08:00 +03:00
|
|
|
|
"snapshot_report.html",
|
|
|
|
|
"*.ambr",
|
2023-04-10 23:51:39 +03:00
|
|
|
|
".git",
|
2023-05-14 03:40:37 +03:00
|
|
|
|
"*.(bmp|png|jpg|jpeg|gif|svg|ico|tiff|tif|ans|flf)",
|
2023-04-15 01:06:53 +03:00
|
|
|
|
"*.log",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"**/localization/*/**/*",
|
|
|
|
|
"**/localization/*.sh",
|
2023-05-13 20:55:18 +03:00
|
|
|
|
"**/typings/**/*",
|
|
|
|
|
"**/samples/*",
|
|
|
|
|
"**/samples/**/*",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"__pycache__",
|
2023-06-28 03:37:02 +03:00
|
|
|
|
"**/*.egg-info/**/*"
|
2023-04-10 23:51:39 +03:00
|
|
|
|
],
|
|
|
|
|
"words": [
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"afterstep",
|
2023-09-08 18:04:28 +03:00
|
|
|
|
"ambr",
|
2023-07-18 20:48:11 +03:00
|
|
|
|
"Andale",
|
2023-07-01 03:23:20 +03:00
|
|
|
|
"APNG",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"appcode",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"appscript",
|
2023-05-04 03:17:23 +03:00
|
|
|
|
"asyncio",
|
2023-04-22 05:51:00 +03:00
|
|
|
|
"bezier",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"blackbox",
|
2023-04-11 05:24:22 +03:00
|
|
|
|
"Bresenham",
|
|
|
|
|
"Bresenham's",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"bsetbg",
|
2023-05-18 05:51:19 +03:00
|
|
|
|
"bucketization",
|
2023-05-20 05:19:27 +03:00
|
|
|
|
"Caja",
|
2023-07-19 08:16:21 +03:00
|
|
|
|
"Cascadia",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"clion",
|
2023-04-11 01:44:24 +03:00
|
|
|
|
"cmdpxl",
|
2023-09-04 20:25:07 +03:00
|
|
|
|
"COLORTERM",
|
2023-07-21 03:52:44 +03:00
|
|
|
|
"conhost",
|
2023-07-19 08:16:21 +03:00
|
|
|
|
"Consola",
|
2023-07-18 04:36:03 +03:00
|
|
|
|
"Consolas",
|
2023-07-19 08:16:21 +03:00
|
|
|
|
"Cour",
|
2023-05-18 02:04:50 +03:00
|
|
|
|
"dasharray",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"dcop",
|
2023-05-13 10:18:20 +03:00
|
|
|
|
"Deutsch",
|
2023-04-18 07:29:40 +03:00
|
|
|
|
"DIALOGEX",
|
2023-07-12 01:54:52 +03:00
|
|
|
|
"disambiguates",
|
2023-07-12 08:42:58 +03:00
|
|
|
|
"dockable",
|
2023-09-13 03:45:37 +03:00
|
|
|
|
"docstrings",
|
2023-05-26 06:13:04 +03:00
|
|
|
|
"domtree",
|
2023-07-16 01:41:49 +03:00
|
|
|
|
"Dunder",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"emacsclient",
|
|
|
|
|
"executablepath",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"fbsetbg",
|
2023-05-13 07:56:55 +03:00
|
|
|
|
"Figlet",
|
2023-05-02 19:33:48 +03:00
|
|
|
|
"Fira",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"fluxbox",
|
2023-04-18 07:29:40 +03:00
|
|
|
|
"fudgedness",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"gconftool",
|
2023-07-16 02:00:37 +03:00
|
|
|
|
"getbands",
|
2023-04-19 09:08:01 +03:00
|
|
|
|
"getpid",
|
2023-05-13 20:55:18 +03:00
|
|
|
|
"getpixel",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"goland",
|
2023-07-19 00:49:55 +03:00
|
|
|
|
"gsettings",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"gvim",
|
2023-06-12 08:49:11 +03:00
|
|
|
|
"hackily",
|
2023-04-13 17:06:39 +03:00
|
|
|
|
"Haha",
|
2023-04-13 05:42:48 +03:00
|
|
|
|
"hkey",
|
2023-05-25 06:12:35 +03:00
|
|
|
|
"hslrgb",
|
2023-05-24 09:05:20 +03:00
|
|
|
|
"hsrgb",
|
2023-04-19 03:43:51 +03:00
|
|
|
|
"humbnail",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"icewm",
|
|
|
|
|
"icewmbg",
|
2023-05-15 06:20:18 +03:00
|
|
|
|
"icns",
|
2023-07-18 04:36:03 +03:00
|
|
|
|
"Inconsolata",
|
2023-07-21 23:42:03 +03:00
|
|
|
|
"Inkscape",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"Intelli",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"kdesktop",
|
|
|
|
|
"ksmserver",
|
|
|
|
|
"kubuntu",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"linewrap",
|
2023-04-10 23:51:39 +03:00
|
|
|
|
"𝗟𝙇",
|
2023-04-19 03:43:51 +03:00
|
|
|
|
"llpaper",
|
2023-05-24 09:05:20 +03:00
|
|
|
|
"lrgb",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"lubuntu",
|
|
|
|
|
"Lubuntu",
|
2023-07-18 04:36:03 +03:00
|
|
|
|
"Lucida",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"lxde",
|
|
|
|
|
"LXDE",
|
|
|
|
|
"mateconftool",
|
2023-07-18 20:48:11 +03:00
|
|
|
|
"Menlo",
|
2023-07-11 11:00:22 +03:00
|
|
|
|
"mirc",
|
2023-04-17 02:23:00 +03:00
|
|
|
|
"modd",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"mspaint",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"mvim",
|
2023-07-24 22:15:43 +03:00
|
|
|
|
"mypy",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"myusername",
|
2023-05-20 05:19:27 +03:00
|
|
|
|
"Nemo",
|
2023-07-18 04:36:03 +03:00
|
|
|
|
"Noto",
|
2023-04-10 23:51:39 +03:00
|
|
|
|
"Odhner",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"openbox",
|
|
|
|
|
"Openbox",
|
2023-07-19 00:49:55 +03:00
|
|
|
|
"osascript",
|
2023-09-04 16:06:15 +03:00
|
|
|
|
"pacman",
|
2023-04-21 22:05:15 +03:00
|
|
|
|
"pagedown",
|
|
|
|
|
"pageup",
|
2023-07-16 02:00:37 +03:00
|
|
|
|
"palettized",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"pcmanfm",
|
2023-06-30 23:48:01 +03:00
|
|
|
|
"performantly",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"phpstorm",
|
2023-04-19 19:00:34 +03:00
|
|
|
|
"pipreqs",
|
2023-09-04 16:06:15 +03:00
|
|
|
|
"pipx",
|
2023-04-11 01:44:24 +03:00
|
|
|
|
"Playscii",
|
2023-04-22 08:04:19 +03:00
|
|
|
|
"polyline",
|
2023-04-19 09:08:01 +03:00
|
|
|
|
"psutil",
|
2023-06-27 22:33:56 +03:00
|
|
|
|
"pybabel",
|
2023-04-15 01:06:53 +03:00
|
|
|
|
"pycache",
|
Use pyfakefs for file dialog tests
- The app's directory structure is not a constant, and shouldn't play into this test. Aside from codebase restructuring, directories like `__pycache__` can come and go.
- Even if a temporary directory were created with files enough to fill the view, the scrollbar would still change based on the folder structure outside of the temporary folder.
- pyfakefs is one way to ensure a consistent view of a folder structure for testing. It allows adding real folders in a readonly way. It's more complicated than I thought it would be going in, since I had to add workarounds for pyfiglet and pytest-textual-snapshot, and handle an edge case in my EnhancedDirectoryTree (which got an error which seems to be swallowed?), not to mention pyfakefs raises an error saying "No such file or directory in the fake filesystem" when actually it's the real directory not existing when trying to add it to the fake filesystem, and VS Code was hiding stack frames and refusing to step into library code, and it turned out that I was resolving the absolute path wrong, but it looked right to me because the only part that was missing was "textual-paint", when, at a glance it seemed present, since the "textual_paint" part was present. Ay-ay-ay!
- I don't know if this will fix the problem I saw where these tests' snapshots all changed with no visual or even structural changes, just the IDs of elements changing. I don't know what caused that.
Oh yeah and this is still actually a problem:
============================================= short test summary info ==============================================
FAILED tests/test_snapshots.py::test_paint_open_dialog[light_unicode] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_open_dialog[dark_unicode] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_open_dialog[light_ascii] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_open_dialog[dark_ascii] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_save_dialog[light_unicode] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_save_dialog[dark_unicode] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_save_dialog[light_ascii] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
FAILED tests/test_snapshots.py::test_paint_save_dialog[dark_ascii] - AttributeError: 'EnhancedDirectoryTree' object has no attribute '_id'. Did you mean: 'id'?
========================== 8 failed, 56 passed, 1 xfailed, 1 warning in 152.86s (0:02:32) ==========================
It worked when running in debug, but not when running normally.
2023-09-13 01:38:08 +03:00
|
|
|
|
"pyfakefs",
|
2023-05-13 20:55:18 +03:00
|
|
|
|
"pyfiglet",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"Pylance",
|
2023-07-19 00:49:55 +03:00
|
|
|
|
"pyobjc",
|
2023-04-26 19:26:12 +03:00
|
|
|
|
"pyperclip",
|
2023-04-11 20:21:19 +03:00
|
|
|
|
"pypixelart",
|
2023-04-22 09:27:43 +03:00
|
|
|
|
"pyright",
|
2023-09-07 22:14:07 +03:00
|
|
|
|
"pytest",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"pyxdg",
|
2023-05-27 01:20:32 +03:00
|
|
|
|
"qualname",
|
2023-07-21 00:44:23 +03:00
|
|
|
|
"rasterization",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"razorkwin",
|
2023-05-17 17:04:29 +03:00
|
|
|
|
"rects",
|
2023-05-02 02:23:57 +03:00
|
|
|
|
"renderable",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"rmam",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"rmate",
|
|
|
|
|
"rubymine",
|
2023-07-18 06:35:20 +03:00
|
|
|
|
"screeninfo",
|
2023-09-06 03:11:32 +03:00
|
|
|
|
"scrollbars",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"SETDESKWALLPAPER",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"setterm",
|
|
|
|
|
"setuptools",
|
2023-04-19 03:43:51 +03:00
|
|
|
|
"Shft",
|
2023-07-24 22:10:54 +03:00
|
|
|
|
"sixel",
|
2023-09-05 00:32:21 +03:00
|
|
|
|
"skeuomorphism",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"skool",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"smam",
|
2023-05-13 07:05:51 +03:00
|
|
|
|
"Smushing",
|
2023-04-11 23:22:00 +03:00
|
|
|
|
"stransi",
|
2023-04-18 07:29:40 +03:00
|
|
|
|
"STRINGTABLE",
|
2023-09-06 17:01:49 +03:00
|
|
|
|
"strxfrm",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"subl",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"tasklist",
|
2023-05-04 03:17:23 +03:00
|
|
|
|
"textconv",
|
2023-05-20 05:19:27 +03:00
|
|
|
|
"thumbnailer",
|
|
|
|
|
"Thunar",
|
2023-07-18 07:13:02 +03:00
|
|
|
|
"tkinter",
|
2023-05-01 20:26:59 +03:00
|
|
|
|
"tlaplus",
|
2023-07-21 08:18:22 +03:00
|
|
|
|
"tput",
|
2023-05-02 19:33:48 +03:00
|
|
|
|
"truecolor",
|
2023-05-17 17:04:29 +03:00
|
|
|
|
"tspan",
|
|
|
|
|
"tspans",
|
2023-06-30 05:38:45 +03:00
|
|
|
|
"txtpnt",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"ubuntustudio",
|
2023-04-18 07:29:40 +03:00
|
|
|
|
"ufeff",
|
2023-09-06 17:01:49 +03:00
|
|
|
|
"undecorate",
|
2023-04-28 22:27:23 +03:00
|
|
|
|
"undoable",
|
2023-04-13 05:42:48 +03:00
|
|
|
|
"undos",
|
2023-04-19 03:43:51 +03:00
|
|
|
|
"ustom",
|
2023-06-08 10:12:58 +03:00
|
|
|
|
"venv",
|
2023-05-15 06:20:18 +03:00
|
|
|
|
"vkey",
|
2023-06-04 20:25:55 +03:00
|
|
|
|
"webp",
|
|
|
|
|
"webstorm",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"windowmaker",
|
|
|
|
|
"wmaker",
|
|
|
|
|
"wmsetbg",
|
2023-06-27 22:33:56 +03:00
|
|
|
|
"wstorm",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"xfce",
|
|
|
|
|
"xfconf",
|
|
|
|
|
"xfdesktop",
|
2023-06-27 22:33:56 +03:00
|
|
|
|
"xgettext",
|
2023-07-22 08:06:04 +03:00
|
|
|
|
"xpot",
|
|
|
|
|
"xubuntu"
|
2023-04-10 23:51:39 +03:00
|
|
|
|
]
|
|
|
|
|
}
|