pypas-cli 0.2.4__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/PKG-INFO +1 -1
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/pyproject.toml +1 -1
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/lib/exercise.py +4 -8
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas_cli.egg-info/PKG-INFO +1 -1
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/LICENSE +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/README.md +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/setup.cfg +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/__init__.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/lib/auth.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/lib/config.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/lib/console.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/lib/decorators.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/lib/monads.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/lib/network.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/lib/sysutils.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/main.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas/settings.py +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas_cli.egg-info/SOURCES.txt +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas_cli.egg-info/dependency_links.txt +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas_cli.egg-info/entry_points.txt +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas_cli.egg-info/requires.txt +0 -0
- {pypas_cli-0.2.4 → pypas_cli-0.2.5}/src/pypas_cli.egg-info/top_level.txt +0 -0
|
@@ -3,11 +3,11 @@ from __future__ import annotations
|
|
|
3
3
|
import os
|
|
4
4
|
import re
|
|
5
5
|
import shutil
|
|
6
|
+
import subprocess
|
|
6
7
|
import tempfile
|
|
7
8
|
import zipfile
|
|
8
9
|
from pathlib import Path
|
|
9
10
|
|
|
10
|
-
import pytest
|
|
11
11
|
import toml
|
|
12
12
|
from rich.panel import Panel
|
|
13
13
|
|
|
@@ -117,13 +117,9 @@ class Exercise:
|
|
|
117
117
|
zipfile.unlink(missing_ok=True)
|
|
118
118
|
|
|
119
119
|
def test(self):
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
pypas is not able to directly test this exercise.
|
|
124
|
-
Please [i]install dependencies[/i] (usually inside a virtualenv) and run: [note]pytest""")
|
|
125
|
-
else:
|
|
126
|
-
pytest.main(args=[])
|
|
120
|
+
test_cmd = self.config.get('test_cmd', 'pytest')
|
|
121
|
+
console.info(f'Running tests with: [note]{test_cmd}[/note]')
|
|
122
|
+
subprocess.run(test_cmd, shell=True)
|
|
127
123
|
|
|
128
124
|
@classmethod
|
|
129
125
|
def from_config(cls) -> Exercise:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|