
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
raises regexp · Issue #372 · pytest-dev/pytest
Description:
Originally reported by: György Kiss (BitBucket: kissgyorgy, GitHub: kissgyorgy) I used assertRaisesRegexp in unittest and I miss it from pytest. As I don't want to use unittest anymore :D I wro...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {📚}
- Social Networks
- Video & Online Content
- Dating & Relationships
Content Management System {📝}
What CMS is github.com built with?
Github.com is powered by WORDPRESS.
Traffic Estimate {📈}
What is the average monthly size of github.com audience?
🚀🌠 Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {💸}
Subscription Packages {💳}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {💰}
Subscription Packages {💳}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {🎨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {🔍}
pytestbot, commented, github, contributor, bitbucket, issue, comment, regex, pytest, manager, author, original, context, message, aldanor, feature, nicoddemus, ronnypfannschmidt, def, selfexception, proposal, member, sign, kissgyorgy, python, exception, selfmessage, selfexcinfo, type, code, projects, unittest, exctype, hpk, adding, keyword, ivan, smirnov, pytestraises, added, pytestraisesmatchingvalueerror, easy, navigation, pull, requests, actions, security, raises, regexp, györgy,
Topics {✒️}
org/pytest-dev/pytest/issue/372 activity comment metadata assignees issue easy issue assigned labels good contributor type regex condition based compiler commented type projects projects milestone context manager due regex keyword argument class raises_regexp code slightly compiler member proposal proposal keyword argument regex keyword pytest-raisesregexp __tracebackhide__ = true issue def __enter__ context manager context manager code regex=r' def __init__ pytest support györgy kiss py holger krekel ivan smirnov floris bruynooghe bruno oliveira modified version typing required gather opinions builtin solution preferred interface feature type milestone relationships message contained 'expected message' raise %s' % python separate function unittest anymore message = message nicoddemus raises exception = exception
Payment Methods {📊}
- Braintree
Questions {❓}
- @hpk42 What do you think about all this?
- Already have an account?
- Any other suggestion?
- I was almost tempted to use pytest, until I saw this issue :/ Any particular reason why this hasn't been added yet?
- What do you guys think?
- Would it be very wrong to only support a new regex keyword when used as a context manager?
Schema {🗺️}
DiscussionForumPosting:
context:https://schema.org
headline:raises regexp
articleBody:Originally reported by: **György Kiss (BitBucket: [kissgyorgy](http://bitbucket.org/kissgyorgy), GitHub: [kissgyorgy](http://github.com/kissgyorgy))**
---
I used assertRaisesRegexp in `unittest` and I miss it from `pytest`. As I don't want to use `unittest` anymore :D I wrote a context manager:
```
#!python
import pytest
import py
class raises_regexp(object):
def __init__(self, exception, message):
self.exception = exception
self.message = message
self.excinfo = None
def __enter__(self):
self.excinfo = object.__new__(py.code.ExceptionInfo)
return self.excinfo
def __exit__(self, exc_type, exc_val, exc_tb):
__tracebackhide__ = True
if exc_type is None:
pytest.fail('DID NOT RAISE %s' % self.exception)
self.excinfo.__init__((exc_type, exc_val, exc_tb))
if not issubclass(self.excinfo.type, self.exception):
pytest.fail('%s RAISED instead of %s' % (exc_type, self.exception))
if self.message not in str(exc_val):
pytest.fail('message "%s" not found in "%s"' % (self.message, str(exc_val)))
return True
```
Usage:
```
#!python
def test_some_exception_thrown():
with raises_regexp(ExpectedException, "message contained"):
# code to test
```
I think others could benefit from something like this and would be nice to have it in pytest!
---
- Bitbucket: https://bitbucket.org/pytest-dev/pytest/issue/372
author:
url:https://github.com/pytestbot
type:Person
name:pytestbot
datePublished:2013-10-19T17:14:04.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:26
url:https://github.com/372/pytest/issues/372
context:https://schema.org
headline:raises regexp
articleBody:Originally reported by: **György Kiss (BitBucket: [kissgyorgy](http://bitbucket.org/kissgyorgy), GitHub: [kissgyorgy](http://github.com/kissgyorgy))**
---
I used assertRaisesRegexp in `unittest` and I miss it from `pytest`. As I don't want to use `unittest` anymore :D I wrote a context manager:
```
#!python
import pytest
import py
class raises_regexp(object):
def __init__(self, exception, message):
self.exception = exception
self.message = message
self.excinfo = None
def __enter__(self):
self.excinfo = object.__new__(py.code.ExceptionInfo)
return self.excinfo
def __exit__(self, exc_type, exc_val, exc_tb):
__tracebackhide__ = True
if exc_type is None:
pytest.fail('DID NOT RAISE %s' % self.exception)
self.excinfo.__init__((exc_type, exc_val, exc_tb))
if not issubclass(self.excinfo.type, self.exception):
pytest.fail('%s RAISED instead of %s' % (exc_type, self.exception))
if self.message not in str(exc_val):
pytest.fail('message "%s" not found in "%s"' % (self.message, str(exc_val)))
return True
```
Usage:
```
#!python
def test_some_exception_thrown():
with raises_regexp(ExpectedException, "message contained"):
# code to test
```
I think others could benefit from something like this and would be nice to have it in pytest!
---
- Bitbucket: https://bitbucket.org/pytest-dev/pytest/issue/372
author:
url:https://github.com/pytestbot
type:Person
name:pytestbot
datePublished:2013-10-19T17:14:04.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:26
url:https://github.com/372/pytest/issues/372
Person:
url:https://github.com/pytestbot
name:pytestbot
url:https://github.com/pytestbot
name:pytestbot
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:26
interactionType:https://schema.org/CommentAction
userInteractionCount:26
External Links {🔗}(8)
- How much revenue does https://github.blog bring in?
- How much money does http://bitbucket.org/kissgyorgy generate?
- https://bitbucket.org/pytest-dev/pytest/issue/372 income
- Revenue of http://bitbucket.org/hpk42
- What's the income generated by http://bitbucket.org/aldanor each month?
- How much does http://bitbucket.org/flub gross monthly?
- http://bitbucket.org/nicoddemus's revenue stream
- How much does https://www.githubstatus.com/ bring in each month?
Analytics and Tracking {📊}
- Site Verification - Google
Libraries {📚}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {✉️}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net