Commit e0fa982
committed
test: Add tests for importlib.resources.simple module
Add tests for ResourceContainer and ResourceHandle classes to verify:
- ResourceContainer instantiation with name property
- ResourceContainer.iterdir() calling resources() method
- ResourceHandle.joinpath() accepting *descendants parameter
- ResourceHandle.iterdir() returning empty iterator
- ResourceHandle name as property instead of instance variable
Also fix ResourceHandle.name to be a property to satisfy Traversable
abstract base class requirements.1 parent efdc545 commit e0fa982
File tree
3,348 files changed
+1407924
-1
lines changed- Lib
- importlib/resources
- test/test_importlib/resources
- install
- bin
- include/python3.15
- cpython
- internal
- mimalloc
- mimalloc
- lib
- pkgconfig
- python3.15
- __phello__
- _pyrepl
- asyncio
- collections
- compression
- _common
- zstd
- concurrent
- futures
- interpreters
- config-3.15-x86_64-linux-gnu
- ctypes
- macholib
- curses
- dbm
- email
- mime
- encodings
- ensurepip
- _bundled
- html
- http
- idlelib
- Icons
- idle_test
- importlib
- metadata
- resources
- json
- logging
- multiprocessing
- dummy
- pathlib
- profiling
- sampling
- _assets
- _flamegraph_assets
- _heatmap_assets
- _vendor
- d3-flame-graph/4.1.3
- d3/7.8.5
- live_collector
- tracing
- pydoc_data
- re
- site-packages
- pip-26.0.1.dist-info
- licenses
- src/pip/_vendor
- cachecontrol
- certifi
- dependency_groups
- distlib
- distro
- idna
- msgpack
- packaging
- pkg_resources
- platformdirs
- pygments
- pyproject_hooks
- requests
- resolvelib
- rich
- tomli_w
- tomli
- truststore
- urllib3
- pip
- _internal
- cli
- commands
- distributions
- index
- locations
- metadata
- importlib
- models
- network
- operations
- build
- install
- req
- resolution
- legacy
- resolvelib
- utils
- vcs
- _vendor
- cachecontrol
- caches
- certifi
- dependency_groups
- distlib
- distro
- idna
- msgpack
- packaging
- licenses
- pkg_resources
- platformdirs
- pygments
- filters
- formatters
- lexers
- styles
- pyproject_hooks
- _in_process
- requests
- resolvelib
- resolvers
- rich
- tomli_w
- tomli
- truststore
- urllib3
- contrib
- _securetransport
- packages
- backports
- util
- sqlite3
- string
- sysconfig
- test
- archivetestdata
- audiodata
- audit_test_data
- certdata
- capath
- cjkencodings
- configdata
- crashers
- data
- decimaltestdata
- dtracedata
- encoded_modules
- leakers
- libregrtest
- mathdata
- regrtestdata/import_from_tests
- test_regrtest_b
- subprocessdata
- support
- _hypothesis_stubs
- test_ast
- data
- test_asyncio
- test_capi
- test_cext
- test_concurrent_futures
- test_cppext
- test_ctypes
- test_dataclasses
- test_doctest
- test_email
- data
- test_free_threading
- test_future_stmt
- test_gdb
- test_importlib
- builtin
- extension
- frozen
- import_
- metadata
- data
- sources
- example2
- example2
- example
- example
- namespace_pkgs
- both_portions/foo
- foo
- module_and_namespace_package
- a_test
- not_a_namespace_pkg/foo
- portion1/foo
- portion2/foo
- project1/parent/child
- project2/parent/child
- project3/parent/child
- partial
- resources
- source
- test_import
- data
- circular_imports
- subpkg2
- parent
- subpkg
- lazy_imports
- badsyntax
- pkg
- package2
- package3
- package4
- package
- unwritable
- test_inspect
- test_interpreters
- test_io
- test_json
- test_module
- test_multiprocessing_forkserver
- test_multiprocessing_fork
- test_multiprocessing_spawn
- test_os
- test_pathlib
- support
- test_peg_generator
- test_profiling
- test_sampling_profiler
- test_pydoc
- test_pyrepl
- test_sqlite3
- test_string
- test_tkinter
- test_tomllib
- data
- invalid
- array-of-tables
- array
- boolean
- dates-and-times
- dotted-keys
- inline-table
- keys-and-vals
- literal-str
- multiline-basic-str
- multiline-literal-str
- table
- valid
- array
- dates-and-times
- inline-table
- multiline-basic-str
- test_tools
- i18n_data
- msgfmt_data
- test_ttk
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
3,348 files changed
+1407924
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
136 | 200 | | |
137 | 201 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments