mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
fix webdav tests and then add some (#6189)
This commit is contained in:
@@ -2,10 +2,15 @@ import csv
|
||||
import os
|
||||
from contextlib import contextmanager
|
||||
|
||||
import pytest
|
||||
from funcy import first
|
||||
|
||||
from dvc.scm import Git
|
||||
|
||||
# rewrite assertions in assert, pytest does not rewrite for other modules
|
||||
# than tests itself.
|
||||
pytest.register_assert_rewrite("tests.utils.asserts")
|
||||
|
||||
|
||||
def get_gitignore_content():
|
||||
with open(Git.GITIGNORE) as gitignore:
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
from typing import Any
|
||||
from typing import Any, Dict
|
||||
from unittest.mock import ANY, Mock
|
||||
|
||||
|
||||
def issubset(subset: Dict, superset: Dict) -> bool:
|
||||
assert {**superset, **subset} == superset
|
||||
return True
|
||||
|
||||
|
||||
def called_once_with_subset(m: Mock, *args: Any, **kwargs: Any) -> bool:
|
||||
m.assert_called_once()
|
||||
m_args, m_kwargs = m.call_args
|
||||
|
||||
Reference in New Issue
Block a user