-
In projects I've worked with we've noticed that we don't deviate from one flavor of `Machine.Fakes` (in our case Moq). For the rare cases where we've needed additional control over the mocking, we jus…
-
As a developer I'd like to unit test my code. Most of this code can be expected to operate on instances of NwObject and derivatives, and as such it would be highly useful to mock out instances of thes…
jakkn updated
2 years ago
-
Hello there
I have googled a lot but didn't find any solution to create a deep stubbed mock described in the following example:
`const route: ActivatedRoute = mock(ActivatedRoute);
when(route.s…
-
Currently much of SunPy's test coverage relies on remote servers, which can be unreliable and lead to spurious test failures on CI services.
Using the mock library: https://docs.python.org/3/librar…
-
# Feature or enhancement
### Proposal:
Passing `instance=True` to `create_autospec` misses fields without default values, even when the given spec is a `dataclass` object:
```python
>>> from…
-
Hi, mocha is just test runner, but it's lacking jest's asserting and mocking functionality. I didn't find any fable's bindinds to neither chai nor sinon, which are most popular for mocha. What do you …
-
code under test: lint.groovy
```
def lintYamlFiles() {
script {
def detect = new detect()
def changedFiles = detect.changedFiles()
sh '''
#!/bin/bash -x…
-
**EDIT:** I just realized that the main place I've grabbed Ionic mock from was the [Clicker](https://github.com/lathonez/clicker) project. [`mocks.ts`](https://github.com/lathonez/clicker/blob/master/…
-
The thing that strikes me as weird is that I don't have any calls on `uname` from the `os` module since I've replaced all `os.uname()` calls with `platform.uname()`.
here's the error message
![i…
-
Maybe we could mock the downloading procedure? @jhung0