evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / bork / tests.nix
blob7d5c84f2bc35cb00e29a18af31cdf3f619352e81
2   testers,
4   bork,
5   cacert,
6   git,
7   pytest,
8 }:
10   # a.k.a. `tests.testers.runCommand.bork`
11   pytest-network = testers.runCommand {
12     name = "bork-pytest-network";
13     nativeBuildInputs = [
14       bork
15       cacert
16       git
17       pytest
18     ];
19     script = ''
20       # Copy the source tree over, and make it writeable
21       cp -r ${bork.src} bork/
22       find -type d -exec chmod 0755 '{}' '+'
24       pytest -v -m network bork/
25       touch $out
26     '';
27   };