腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(73)
视频
沙龙
1
回答
使用
pyhamcrest
引发时Pytest失败
python-3.x
、
pytest
、
python-unittest
、
hamcrest
、
pyhamcrest
切换到pytest语法可以工作(如下所示),但是为什么
pyhamcrest
匹配器在这种情况下不能工作?
浏览 20
提问于2022-11-23
得票数 0
回答已采纳
2
回答
moduleNotFoundError:没有名为(*)的模块
python
、
pytest
、
modulenotfounderror
test_ASSERTPY_uczen.cpython-39-pytest-6.2.5.pyc│ │ ├── test_
PYHAMCREST
_uczen.cpython-39-pytest-6.2.1.pyc│ │ ├── test_
PYHAMCREST
_uczen.cpythonpytest-6.2.5.
浏览 3
提问于2021-11-30
得票数 2
回答已采纳
1
回答
YouCompleteMe配置问题
c++
、
vim
、
autocomplete
我正在运行Ubuntu,并通过vundle安装了YouCompleteMe。当我使用run_tests.sh时,它告诉我flake8丢失了,所以我安装了它,然后它又抱怨nose,所以我安装了它。现在我看到了错误
浏览 1
提问于2015-03-05
得票数 0
1
回答
试图导入Python中的docx
ms-word
、
installation
、
python-3.x
、
pip
、
docx
这似乎工作得很好,在进度条加载完之后,我看到:我不完全确定
pyhamcrest
是什么,但为了安全起见,我还是安装了pip install
pyhamcrest
。
浏览 0
提问于2019-07-11
得票数 2
回答已采纳
1
回答
pyhamcrest
修改"got“描述
python
、
hamcrest
我已经编写了一个自定义的hamcrest匹配器,用于检查列表中的文件是否已被复制。列表可能很长(1000 files+),所以如果缺少一个文件,我不希望matcher打印出整个列表。完整代码: def __init__(self): try:
浏览 4
提问于2014-02-17
得票数 1
回答已采纳
1
回答
pyhamcrest
包含一组数据的匹配器。
python
、
dictionary
、
python-unittest
、
pyhamcrest
为什么
pyhamcrest
在包含2个或更多个数据的列表中失败,而对于一个dict列表却很好呢? 什么是最好的方式来写哈姆卡斯特(
pyhamcrest
)匹配表的切分?
浏览 5
提问于2017-10-13
得票数 1
回答已采纳
1
回答
面对在Anaconda Windows上安装witwidget (谷歌是什么-如果太过)的问题
python
、
tensorflow
、
anaconda
我面临安装什么-如果工具的问题。pip install witwidget成功完成。Environment: Windows 10Python版本: 3.7.0Traceback (most
浏览 0
提问于2020-04-17
得票数 0
2
回答
pyhamcrest
-比较两个列表
python
、
automated-tests
、
pytest
、
python-unittest
、
pyhamcrest
我刚刚开始学习python。当前正在编写单元测试,以断言预期列表中的元素是否存在于实际列表中 def test_compare_list_of_items(): expected_list_of_items = ['a'] assert_that(actual_list_of_items, has_item(has_items(expected_list_of_items))) 但我收到的错误信息如下 E Expected: a sequenc
浏览 49
提问于2019-12-31
得票数 0
4
回答
如何才能准确地看出行为上的错误
cucumber
、
bdd
、
jbehave
、
nbehave
、
python-behave
我们最近开始为一个新的python服务的BDD使用。当测试失败时,我们是否可以获得关于失败原因的详细信息?他们抛出AssertionError,但从来没有显示出到底出了什么问题。例如,断言中的预期值和实际值。示例 Scenario: Logout when not logged in
浏览 1
提问于2014-02-26
得票数 17
回答已采纳
1
回答
Python2.7Unicode符号的
PyHamcrest
1.8.5匹配器
python
、
python-2.7
、
unicode
、
hamcrest
我试图为标准的
PyHamcrest
匹配器获取str,以便进行日志记录:print
浏览 2
提问于2016-04-26
得票数 1
回答已采纳
1
回答
我的单元测试是否遵循最佳实践?
python
、
unit-testing
我看过相当多的视频,读过几篇关于单元测试的文章,我已经尽了最大的努力使这个测试用例尽可能好。在哪些方面还可以改进呢?import datetimeimport pathlibimport unittest path_to_this_file = pathlib.Path(__file__) path_to_srsalgorithms = path_to_this_
浏览 0
提问于2014-03-27
得票数 12
2
回答
如何在Hamcrest中组合多个assert_that?
python
、
hamcrest
我使用的是
PyHamcrest
,但我认为这个问题与语言无关。
浏览 0
提问于2012-05-08
得票数 2
1
回答
发现一个过时的扭曲的python教程,有人知道如何让代码工作吗?
python
、
server
、
twisted
constantly==15.1.0hyperlink==19.0.0incremental==17.5.0
PyHamcrest
浏览 13
提问于2020-07-30
得票数 0
1
回答
为什么
PyHamcrest
没有一个负等式匹配器?
python
、
equals
、
hamcrest
、
pyhamcrest
回顾,我看到有一个equal_to匹配器assert_that('1', equal_to('1'))from hamcrest import *匹配负平等的正确方法是什么?
浏览 8
提问于2017-09-23
得票数 1
回答已采纳
1
回答
aws linux虚拟安装扭曲
python
、
python-3.x
、
amazon-ec2
、
virtualenv
、
amazon-linux
Successfully installed Automat-0.7.0 Django-2.0.6
PyHamcrest
-1.9.0 PyJWT-1.6.4 aioredis-1.1.0 altgraph1.0.2 pip 18.0
PyHamcrest
浏览 0
提问于2018-07-24
得票数 0
1
回答
应用于hamcrest.contains_inanyorder的几乎无用的unittest.mock.Mock.mock_calls断言输出
python
、
python-3.x
、
hamcrest
、
python-unittest.mock
我可以用
PyHamcrest
的以一种通用的、可理解的方式来实现这一点。 #!这是unittest.mock或
PyHamcrest
中的一个bug,还是我使用它们的错误?
浏览 1
提问于2016-05-01
得票数 1
回答已采纳
2
回答
已知版本扭曲蟒蛇
python
、
pip
、
twisted
我想检查一下在我的操作系统上安装了哪个版本的扭曲python。我需要一个版本的17.1.0或更高版本,我在CentOS 7上工作。(.synapse)[root@nexus-chat1 .synapse]# twisted -v但是如何升级我的版本呢?如果我这么做,它会更新吗?
浏览 0
提问于2018-03-09
得票数 1
回答已采纳
1
回答
安装并使用RPy2 (使用conda),以便在/usr/lib/R中使用默认的R安装
python
、
r
、
conda
、
rpy2
我想使用RPy2从Python中的R包中调用函数。我使用conda安装了RPy2,并意识到它在conda中安装了一个新的R副本。我不想这样。我只想拥有和使用一个R,默认的一个在/usr/lib/R中。
浏览 2
提问于2018-07-23
得票数 8
1
回答
在setuptools.find_packages中什么是“哪里”的参数?
python
、
setuptools
、
packaging
extras_require={ 'test': [ '
PyHamcrest
浏览 0
提问于2018-07-11
得票数 29
回答已采纳
1
回答
Pyarrow没有安装python3.7(anaconda5.3.0,windows x64版本)
python
、
pandas
、
anaconda
、
pyarrow
请注意,它提供了以下输出--尝试将pip生成的回滚更新为python 3.6,因此我不建议这样做: twisted 18.7.0 requires
PyHamcrest
>=1.9.0, which is
浏览 0
提问于2018-10-11
得票数 3
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券