circuitpython/tests/unix
Jeff Epler 52bca95208
Refactor dotenv module so that it can be tested on host
.. it needs to operate on a FILE* rather than FIL depending on
the build.

Note that this is comparing output to expected, not to cpython dotenv
package. Because run-tests.py starts the CPython interpreter with the
'-S' (skip site initialization) flag, pip-installed packages are
not available for import inside a test file. Instead, the exp
file is generated manually:
```
circuitpython/tests$ python3 circuitpython/dotenv_test.py > circuitpython/dotenv_test.py.exp
```

Unfortunately, the test fails on test e15:
```diff
FAILURE /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py
--- /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.exp	2022-10-04 09:48:16.307703128 -0500
+++ /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.out	2022-10-04 09:48:16.307703128 -0500
@@ -14,7 +14,7 @@
 line
 e13 e13value
 e14 None
-e15 e15value
+e15 None
 e16 #
 e17 def
 e18 #has a hash
```
2022-10-04 09:51:27 -05:00
..
extra_coverage.py py/modio: Remove io.resource_stream function. 2021-12-17 23:53:44 +11:00
extra_coverage.py.exp Refactor dotenv module so that it can be tested on host 2022-10-04 09:51:27 -05:00
ffi_callback.py codeformat 2021-04-19 22:22:44 -07:00
ffi_callback.py.exp tests: Add testcase for ffi callbacks. 2014-12-15 02:18:54 +02:00
ffi_float.py unix/modffi: Use a union for passing/returning FFI values. 2021-05-06 12:17:10 +10:00
ffi_float.py.exp unix/modffi: Use a union for passing/returning FFI values. 2021-05-06 12:17:10 +10:00
ffi_float2.py codeformat 2021-04-19 22:22:44 -07:00
ffi_float2.py.exp tests/ffi_float: Split tgammaf() testcase to a separate test. 2015-08-29 17:24:29 +03:00
ffi_lib.c tests/unix: Add ffi test for integer types. 2021-06-06 22:52:25 +10:00
ffi_types.py.exp tests/unix: Add ffi test for integer types. 2021-06-06 22:52:25 +10:00
time.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00