Skip to content
Sections
>> Trisquel >> Balíky >> ecne (12.0LTS) >> python >> python3-mock-open
[  ecne  ] [  xolotl  ]
[ Zdroj: python-mock-open  ]

Balík: python3-mock-open (1.4.0-2)

Better mock for file I/O

The MockOpen class should work as a stand-in replacement for mock.mock_open with some added features (though it tries to conform to how the builtin 'open' works where the two differ).

Features include:

 * Multiple file support, including a mapping-like access to file mocks by
   path.
 * Persistent file contents between calls to `open`.
 * All the regular file operations: 'read', 'readline', 'readlines', 'write',
   'writelines', 'seek', 'tell'.

Ostatné balíky súvisiace s balíkom python3-mock-open

  • závisí
  • odporúča
  • navrhuje
  • dep: python3
    interactive high-level object-oriented language (default python3 version)

Stiahnuť python3-mock-open

Stiahnuť pre všetky dostupné architektúry
Architektúra Veľkosť balíka Nainštalovaná veľkosť Súbory
all 13.3 kB74 kB [zoznam súborov]