workspace stringclasses 1
value | channel stringclasses 1
value | sentences stringlengths 1 3.93k | ts stringlengths 26 26 | user stringlengths 2 11 | sentence_id stringlengths 44 53 | timestamp float64 1.5B 1.56B | __index_level_0__ int64 0 106k |
|---|---|---|---|---|---|---|---|
pythondev | help | not sure if you can follow me | 2017-09-20T07:59:04.000123 | Adell | pythondev_help_Adell_2017-09-20T07:59:04.000123 | 1,505,894,344.000123 | 94,303 |
pythondev | help | I have a list with objects where I'm trying to call each objects update function and this is where I would like to do it in multiple processes, so each object can update parallel and be done ~the same time, instead of after each other. | 2017-09-20T08:00:28.000265 | Adell | pythondev_help_Adell_2017-09-20T08:00:28.000265 | 1,505,894,428.000265 | 94,304 |
pythondev | help | Okay. It's still a bit confusing to follow, partly because you have commented out code in there which doesn't look like it would ever do the right thing, such as each tracker creating its own Pool, or calling amap which doesn't seem to be a documented function | 2017-09-20T08:04:39.000187 | Gabriele | pythondev_help_Gabriele_2017-09-20T08:04:39.000187 | 1,505,894,679.000187 | 94,305 |
pythondev | help | I'd recommend maybe writing a similar test case where you replace the dlib stuff with a dummy function of your own choosing, and verify whether that works correctly or not. If not, the problem is elsewhere in your code | 2017-09-20T08:05:26.000408 | Gabriele | pythondev_help_Gabriele_2017-09-20T08:05:26.000408 | 1,505,894,726.000408 | 94,306 |
pythondev | help | The pool thing is some old code from old experiments with it. I get your idea and will try it out and see if I can get anything to work.
Thanks for your time! | 2017-09-20T08:14:37.000130 | Adell | pythondev_help_Adell_2017-09-20T08:14:37.000130 | 1,505,895,277.00013 | 94,307 |
pythondev | help | Hey, guys! Maybe someone can help me with SimpleNamespace.
I have several nested SimpleNamespace objects and I need to convert them to dicts:
```
from types import SimpleNamespace as SN
a = SN(test='test', subsn=SN(a='a'))
```
When I try to use dict() or json.dumps() I get a TypeError.
Is there any pythonic way to cast it to dict other than manually iterating over attrs and converting them to dict? | 2017-09-20T09:30:34.000386 | Lyn | pythondev_help_Lyn_2017-09-20T09:30:34.000386 | 1,505,899,834.000386 | 94,308 |
pythondev | help | you can create a custom encoder:
```
class CustomEncoder(json.JSONEncoder):
def default(self, n):
return n.__dict__
```
then use `cls` argument on `json.dumps`: `json.dumps(a, cls=CustomEncoder)` | 2017-09-20T09:38:01.000124 | Candelaria | pythondev_help_Candelaria_2017-09-20T09:38:01.000124 | 1,505,900,281.000124 | 94,309 |
pythondev | help | <@Candelaria> Thanks! I'll try it | 2017-09-20T09:53:02.000115 | Lyn | pythondev_help_Lyn_2017-09-20T09:53:02.000115 | 1,505,901,182.000115 | 94,310 |
pythondev | help | Hey all, would anyone have a resource for how to run a store where multiple people can sell things through your site for money? I am wondering about how to pay people (handled via code)....are there any services for this? Was planning on using stripe but I have never used it this way before | 2017-09-20T09:56:38.000474 | Vita | pythondev_help_Vita_2017-09-20T09:56:38.000474 | 1,505,901,398.000474 | 94,311 |
pythondev | help | Oh to clarify I was going to take a small amount of their profit for using my site | 2017-09-20T09:57:20.000506 | Vita | pythondev_help_Vita_2017-09-20T09:57:20.000506 | 1,505,901,440.000506 | 94,312 |
pythondev | help | To get the idea you want an "ebay-platform" ? <@Vita> | 2017-09-20T10:08:04.000050 | Adell | pythondev_help_Adell_2017-09-20T10:08:04.000050 | 1,505,902,084.00005 | 94,313 |
pythondev | help | <@Vita> it seems like stripe have something implemented like that, if you read this article it's talking about it
*Account debits: Some marketplaces charge sellers subscriptions or a fee per transaction β now they can directly debit those accounts.*
<https://venturebeat.com/2017/05/25/stripe-opens-express-sign-ups-for-connect-marketplaces/> | 2017-09-20T10:14:14.000033 | Adell | pythondev_help_Adell_2017-09-20T10:14:14.000033 | 1,505,902,454.000033 | 94,314 |
pythondev | help | <@Adell> Sorry, I didn't see the first message, but yea it's similar to that and thanks for the article! I wasn't sure how to word that properly for google | 2017-09-20T10:15:53.000714 | Vita | pythondev_help_Vita_2017-09-20T10:15:53.000714 | 1,505,902,553.000714 | 94,315 |
pythondev | help | <@Adell> :taco: | 2017-09-20T10:16:11.000804 | Vita | pythondev_help_Vita_2017-09-20T10:16:11.000804 | 1,505,902,571.000804 | 94,316 |
pythondev | help | Fair enough, yeah I edited because I found a better example :slightly_smiling_face: | 2017-09-20T10:16:15.000034 | Adell | pythondev_help_Adell_2017-09-20T10:16:15.000034 | 1,505,902,575.000034 | 94,317 |
pythondev | help | Also since they have it directly implemented according to the article I will expect they have some f.a.q. on it in their documentation or webpage, else I guess a call or mail wouldn't harm :slightly_smiling_face: | 2017-09-20T10:16:52.000651 | Adell | pythondev_help_Adell_2017-09-20T10:16:52.000651 | 1,505,902,612.000651 | 94,318 |
pythondev | help | Thanks, don't plan on staring this until late this year/early next year because of other projects, but I like to do my research way ahead of time | 2017-09-20T10:17:45.000753 | Vita | pythondev_help_Vita_2017-09-20T10:17:45.000753 | 1,505,902,665.000753 | 94,319 |
pythondev | help | Quick simple one, how would i add these together `{{ job.get_lines_total|VAT|currency + job.get_lines_total|currency }}` | 2017-09-20T11:10:50.000206 | Robbin | pythondev_help_Robbin_2017-09-20T11:10:50.000206 | 1,505,905,850.000206 | 94,320 |
pythondev | help | <@Robbin> Could you give more information like what frameworks you are using or at least where the funciton `get_lines_total` comes from? | 2017-09-20T13:00:36.000458 | Vita | pythondev_help_Vita_2017-09-20T13:00:36.000458 | 1,505,912,436.000458 | 94,321 |
pythondev | help | <@Robbin> Can you give some background. It looks like you are using HTML with flask to replace the value within `{{syntax1 + syntax2 }}` but I'm not sure what those two syntaxes are. It looks like job is a class of some sort along with the bitwise or, or maybe you're trying to use python to interface with bash and using the pipe for some other reason. Or you are trying to do some math operation but I'm not really sure. | 2017-09-20T13:22:34.000395 | Glinda | pythondev_help_Glinda_2017-09-20T13:22:34.000395 | 1,505,913,754.000395 | 94,322 |
pythondev | help | I'm studying decorators- has anyone run across any sites that provide decorator practice scenarios? For instance, they give you some code and you are tasked with refactoring to use decorators | 2017-09-20T23:53:27.000031 | Margeret | pythondev_help_Margeret_2017-09-20T23:53:27.000031 | 1,505,951,607.000031 | 94,323 |
pythondev | help | Hi there, is anyone here familiar with serving media from an Apache2.4 server for a Django application hosted on Webfaction ? | 2017-09-21T01:36:32.000131 | Maragaret | pythondev_help_Maragaret_2017-09-21T01:36:32.000131 | 1,505,957,792.000131 | 94,324 |
pythondev | help | <@Vita> <@Glinda> Hey, thanks for trying to help me yesterday, i managed to fix it. I'm sorry i didn't leave much detail i forgot i posted in Help and not Django. My bad. Thanks though :slightly_smiling_face: | 2017-09-21T03:13:52.000096 | Robbin | pythondev_help_Robbin_2017-09-21T03:13:52.000096 | 1,505,963,632.000096 | 94,325 |
pythondev | help | Hi
How do I get this to work?
```
karee = {'K3 compressors': 'a a a',
'K4 compressors': ['bbb', 'c cc', 'dd d']}
for k,v in karee.items():
tag_list = list(v)
for t in tag_list:
print(t)
```
It prints the first one as
```
a
a
a
```
I want it as
```a a a``` | 2017-09-21T04:03:30.000377 | Jon | pythondev_help_Jon_2017-09-21T04:03:30.000377 | 1,505,966,610.000377 | 94,326 |
pythondev | help | Instead of `list(v)`, you probably want `v.split(' ')`, or similar | 2017-09-21T04:05:16.000362 | Gabriele | pythondev_help_Gabriele_2017-09-21T04:05:16.000362 | 1,505,966,716.000362 | 94,327 |
pythondev | help | I don't want to split the strings, I want to print them as is | 2017-09-21T04:05:44.000290 | Jon | pythondev_help_Jon_2017-09-21T04:05:44.000290 | 1,505,966,744.00029 | 94,328 |
pythondev | help | It doesn't help that you have a different data type for K3 and K4... that is going to be awkward | 2017-09-21T04:05:45.000046 | Gabriele | pythondev_help_Gabriele_2017-09-21T04:05:45.000046 | 1,505,966,745.000046 | 94,329 |
pythondev | help | okay, so you want a list with just 1 item in it? | 2017-09-21T04:06:07.000329 | Gabriele | pythondev_help_Gabriele_2017-09-21T04:06:07.000329 | 1,505,966,767.000329 | 94,330 |
pythondev | help | (It should probably be a list in the original data) | 2017-09-21T04:06:14.000126 | Gabriele | pythondev_help_Gabriele_2017-09-21T04:06:14.000126 | 1,505,966,774.000126 | 94,331 |
pythondev | help | ```
karee = {'K3 compressors': 'aaa',
'K4 compressors': ['bbb', 'ccc', 'ddd']}
```
is also an option
I want to create a function that adds items together. If there is only one, it should just add that one.
I'm using strings, as I will use those strings to refer to pandas dataframe columns | 2017-09-21T04:07:12.000108 | Jon | pythondev_help_Jon_2017-09-21T04:07:12.000108 | 1,505,966,832.000108 | 94,332 |
pythondev | help | the strings i put there are just random nonsense now. They can contain any amount and combination of characters | 2017-09-21T04:07:40.000094 | Jon | pythondev_help_Jon_2017-09-21T04:07:40.000094 | 1,505,966,860.000094 | 94,333 |
pythondev | help | Well, ideally you'd _always_ have lists as the values, so it's unfortunate your data looks like this. But if you can't change that, you'll probably have to inspect the type | 2017-09-21T04:07:53.000423 | Gabriele | pythondev_help_Gabriele_2017-09-21T04:07:53.000423 | 1,505,966,873.000423 | 94,334 |
pythondev | help | e.g. `tag_list = v if isinstance(v, list) else [v]` | 2017-09-21T04:08:17.000024 | Gabriele | pythondev_help_Gabriele_2017-09-21T04:08:17.000024 | 1,505,966,897.000024 | 94,335 |
pythondev | help | ahh. I'll try that, thanks | 2017-09-21T04:08:35.000211 | Jon | pythondev_help_Jon_2017-09-21T04:08:35.000211 | 1,505,966,915.000211 | 94,336 |
pythondev | help | It works. Thanks | 2017-09-21T04:09:05.000395 | Jon | pythondev_help_Jon_2017-09-21T04:09:05.000395 | 1,505,966,945.000395 | 94,337 |
pythondev | help | Hey Everyone ! I got sort of a newbie question related to imports | 2017-09-21T05:21:24.000181 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:21:24.000181 | 1,505,971,284.000181 | 94,338 |
pythondev | help | I've got the following directory structure for my project | 2017-09-21T05:21:43.000222 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:21:43.000222 | 1,505,971,303.000222 | 94,339 |
pythondev | help | ```
βββ app.py
βββ db.py
βββ exceptions.py
βββ helpers.py
βββ __init__.py
βββ requirements.txt
βββ tests
β βββ db_connection.py
β βββ db_operations.py
β βββ http_requests.py
β βββ __init__.py
``` | 2017-09-21T05:21:52.000260 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:21:52.000260 | 1,505,971,312.00026 | 94,340 |
pythondev | help | what I would like to do is this: from within `tests/db_connection` I want to import db from the top level directory | 2017-09-21T05:22:47.000399 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:22:47.000399 | 1,505,971,367.000399 | 94,341 |
pythondev | help | only problem is when I run `python -m unittest discover` I get an `ImportError` saying that there's no module called `pokemon_scraper.db` | 2017-09-21T05:23:36.000296 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:23:36.000296 | 1,505,971,416.000296 | 94,342 |
pythondev | help | (the project folder is named pokemon_scraper) | 2017-09-21T05:23:48.000326 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:23:48.000326 | 1,505,971,428.000326 | 94,343 |
pythondev | help | I have put init.py files inside both directories | 2017-09-21T05:24:26.000187 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:24:26.000187 | 1,505,971,466.000187 | 94,344 |
pythondev | help | not sure what I'm missing | 2017-09-21T05:24:35.000184 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:24:35.000184 | 1,505,971,475.000184 | 94,345 |
pythondev | help | thanks in advance for your precious help :slightly_smiling_face: | 2017-09-21T05:24:50.000065 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:24:50.000065 | 1,505,971,490.000065 | 94,346 |
pythondev | help | where do you run that command from? | 2017-09-21T05:26:30.000150 | Gabriele | pythondev_help_Gabriele_2017-09-21T05:26:30.000150 | 1,505,971,590.00015 | 94,347 |
pythondev | help | from the top level directory | 2017-09-21T05:26:58.000436 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:26:58.000436 | 1,505,971,618.000436 | 94,348 |
pythondev | help | where requirements file is located | 2017-09-21T05:27:22.000116 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:27:22.000116 | 1,505,971,642.000116 | 94,349 |
pythondev | help | Hmm, I don't know then. I find Python very awkward for this sort of thing. Often I have to hack in edits to sys.path to get my tests to run. | 2017-09-21T05:31:40.000036 | Gabriele | pythondev_help_Gabriele_2017-09-21T05:31:40.000036 | 1,505,971,900.000036 | 94,350 |
pythondev | help | An expert probably has a better solution though, so hopefully they'll see this | 2017-09-21T05:31:58.000402 | Gabriele | pythondev_help_Gabriele_2017-09-21T05:31:58.000402 | 1,505,971,918.000402 | 94,351 |
pythondev | help | yeah it's a very strange behaviour | 2017-09-21T05:35:54.000252 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:35:54.000252 | 1,505,972,154.000252 | 94,352 |
pythondev | help | thanks for your input <@Gabriele>! | 2017-09-21T05:36:07.000160 | Gwenda | pythondev_help_Gwenda_2017-09-21T05:36:07.000160 | 1,505,972,167.00016 | 94,353 |
pythondev | help | what happens if you try to import from db directly? I think a lot of the test runners (Iβve never used unittest discover myself, so just speaking generally here) add the root folder to your search path | 2017-09-21T06:03:16.000016 | Junita | pythondev_help_Junita_2017-09-21T06:03:16.000016 | 1,505,973,796.000016 | 94,354 |
pythondev | help | when you try and import from `pokemon_scraper` you are trying to import from the directory above that | 2017-09-21T06:03:30.000423 | Junita | pythondev_help_Junita_2017-09-21T06:03:30.000423 | 1,505,973,810.000423 | 94,355 |
pythondev | help | I usually also contain my code within a `src` directory, or something like that, to help keep things tidy, and then import in my tests from `src` | 2017-09-21T06:04:36.000263 | Junita | pythondev_help_Junita_2017-09-21T06:04:36.000263 | 1,505,973,876.000263 | 94,356 |
pythondev | help | yup it was an issue with the unittest package | 2017-09-21T06:25:16.000218 | Gwenda | pythondev_help_Gwenda_2017-09-21T06:25:16.000218 | 1,505,975,116.000218 | 94,357 |
pythondev | help | I switched to nose and now it works fine | 2017-09-21T06:25:25.000017 | Gwenda | pythondev_help_Gwenda_2017-09-21T06:25:25.000017 | 1,505,975,125.000017 | 94,358 |
pythondev | help | cool. I *think* nose is on the outs though, right? I still use it all over the place because Iβm old and stubborn, but is it still under active development? | 2017-09-21T06:27:12.000212 | Junita | pythondev_help_Junita_2017-09-21T06:27:12.000212 | 1,505,975,232.000212 | 94,359 |
pythondev | help | I think the kids these days are using pytest or something similar? | 2017-09-21T06:27:21.000384 | Junita | pythondev_help_Junita_2017-09-21T06:27:21.000384 | 1,505,975,241.000384 | 94,360 |
pythondev | help | :fidget_spinners: pytest :fidget_spinners: only :fidget_spinners: | 2017-09-21T06:27:39.000032 | Suellen | pythondev_help_Suellen_2017-09-21T06:27:39.000032 | 1,505,975,259.000032 | 94,361 |
pythondev | help | I'm a kid-these-days | 2017-09-21T06:28:07.000010 | Suellen | pythondev_help_Suellen_2017-09-21T06:28:07.000010 | 1,505,975,287.00001 | 94,362 |
pythondev | help | haha | 2017-09-21T06:29:04.000058 | Gwenda | pythondev_help_Gwenda_2017-09-21T06:29:04.000058 | 1,505,975,344.000058 | 94,363 |
pythondev | help | I switched to pytest myself. But I run it from Pycharm so I've no idea how it works outside of there | 2017-09-21T06:29:16.000215 | Gabriele | pythondev_help_Gabriele_2017-09-21T06:29:16.000215 | 1,505,975,356.000215 | 94,364 |
pythondev | help | what does pytest do that nose doesnβt? I feel like I asked this question, got a satisfactory answer, but Iβve forgotten. :stuck_out_tongue: | 2017-09-21T06:36:16.000323 | Junita | pythondev_help_Junita_2017-09-21T06:36:16.000323 | 1,505,975,776.000323 | 94,365 |
pythondev | help | I suppose one valid answer is βget actively developedβ :stuck_out_tongue: | 2017-09-21T06:36:28.000035 | Junita | pythondev_help_Junita_2017-09-21T06:36:28.000035 | 1,505,975,788.000035 | 94,366 |
pythondev | help | `assert`, fixtures, plugins, parametrized fixtures and test cases, test functions instead of classes... | 2017-09-21T06:37:03.000201 | Collette | pythondev_help_Collette_2017-09-21T06:37:03.000201 | 1,505,975,823.000201 | 94,367 |
pythondev | help | lots of things, actually | 2017-09-21T06:37:06.000339 | Collette | pythondev_help_Collette_2017-09-21T06:37:06.000339 | 1,505,975,826.000339 | 94,368 |
pythondev | help | They have only one thing in common: they're both test runners. | 2017-09-21T06:37:26.000167 | Collette | pythondev_help_Collette_2017-09-21T06:37:26.000167 | 1,505,975,846.000167 | 94,369 |
pythondev | help | it has some magic fixture stuff, which looks pretty but which I dislike because of the magicness. But I'm sure it can make for quick test development | 2017-09-21T06:37:29.000087 | Gabriele | pythondev_help_Gabriele_2017-09-21T06:37:29.000087 | 1,505,975,849.000087 | 94,370 |
pythondev | help | > dislike because of the magicness | 2017-09-21T06:38:28.000282 | Suellen | pythondev_help_Suellen_2017-09-21T06:38:28.000282 | 1,505,975,908.000282 | 94,371 |
pythondev | help | yeah, I hate python, where is my `malloc()` :stuck_out_tongue: | 2017-09-21T06:38:39.000180 | Suellen | pythondev_help_Suellen_2017-09-21T06:38:39.000180 | 1,505,975,919.00018 | 94,372 |
pythondev | help | Not really the same thing | 2017-09-21T06:38:56.000185 | Gabriele | pythondev_help_Gabriele_2017-09-21T06:38:56.000185 | 1,505,975,936.000185 | 94,373 |
pythondev | help | In this case I'm talking about decorators that magically rewrite things to inject arguments | 2017-09-21T06:39:29.000010 | Gabriele | pythondev_help_Gabriele_2017-09-21T06:39:29.000010 | 1,505,975,969.00001 | 94,374 |
pythondev | help | ^ that's my biggest concern, too. | 2017-09-21T06:39:54.000231 | Collette | pythondev_help_Collette_2017-09-21T06:39:54.000231 | 1,505,975,994.000231 | 94,375 |
pythondev | help | why magically? they just rewrite things, not magically | 2017-09-21T06:40:03.000067 | Suellen | pythondev_help_Suellen_2017-09-21T06:40:03.000067 | 1,505,976,003.000067 | 94,376 |
pythondev | help | I'd rather want to explicitly request fixtures to use in test functions | 2017-09-21T06:40:20.000115 | Collette | pythondev_help_Collette_2017-09-21T06:40:20.000115 | 1,505,976,020.000115 | 94,377 |
pythondev | help | All sufficiently advanced technology looks like magic. This is advanced and mostly hidden, so I call it magic | 2017-09-21T06:40:30.000051 | Gabriele | pythondev_help_Gabriele_2017-09-21T06:40:30.000051 | 1,505,976,030.000051 | 94,378 |
pythondev | help | "explicit is better than implicit", right? | 2017-09-21T06:40:40.000255 | Gabriele | pythondev_help_Gabriele_2017-09-21T06:40:40.000255 | 1,505,976,040.000255 | 94,379 |
pythondev | help | implicit is implicit, not magic :confused: | 2017-09-21T06:40:52.000326 | Suellen | pythondev_help_Suellen_2017-09-21T06:40:52.000326 | 1,505,976,052.000326 | 94,380 |
pythondev | help | i.e. ```
@pytest.use_fixtures('foo', 'bar', 'baz')
def test_stuff(foo, bar, baz):
assert foo == bar == baz
``` | 2017-09-21T06:40:53.000003 | Collette | pythondev_help_Collette_2017-09-21T06:40:53.000003 | 1,505,976,053.000003 | 94,381 |
pythondev | help | <@Collette> you can do this :)) | 2017-09-21T06:41:07.000061 | Suellen | pythondev_help_Suellen_2017-09-21T06:41:07.000061 | 1,505,976,067.000061 | 94,382 |
pythondev | help | Link? | 2017-09-21T06:41:17.000210 | Collette | pythondev_help_Collette_2017-09-21T06:41:17.000210 | 1,505,976,077.00021 | 94,383 |
pythondev | help | <https://docs.pytest.org/en/latest/fixture.html#usefixtures> | 2017-09-21T06:41:59.000305 | Suellen | pythondev_help_Suellen_2017-09-21T06:41:59.000305 | 1,505,976,119.000305 | 94,384 |
pythondev | help | It's not the same. | 2017-09-21T06:42:20.000225 | Collette | pythondev_help_Collette_2017-09-21T06:42:20.000225 | 1,505,976,140.000225 | 94,385 |
pythondev | help | I guess of that list, plugins could be nice | 2017-09-21T06:42:51.000180 | Junita | pythondev_help_Junita_2017-09-21T06:42:51.000180 | 1,505,976,171.00018 | 94,386 |
pythondev | help | in older pytest versions this was the only way, but now you can do it implicitly too
I remember the older tests I've written when there was no fixture injection. | 2017-09-21T06:42:59.000263 | Suellen | pythondev_help_Suellen_2017-09-21T06:42:59.000263 | 1,505,976,179.000263 | 94,387 |
pythondev | help | the others I seem to be getting away with on my own just fine. I mean itβs not like I donβt have fixtures. | 2017-09-21T06:43:04.000214 | Junita | pythondev_help_Junita_2017-09-21T06:43:04.000214 | 1,505,976,184.000214 | 94,388 |
pythondev | help | In my example I can actually _use_ fixture objects in the test function, while `@usefixtures` is just, well, "enabling" fixtures for that test function | 2017-09-21T06:43:17.000038 | Collette | pythondev_help_Collette_2017-09-21T06:43:17.000038 | 1,505,976,197.000038 | 94,389 |
pythondev | help | and you could always test functions instead of classes, right? | 2017-09-21T06:43:40.000214 | Junita | pythondev_help_Junita_2017-09-21T06:43:40.000214 | 1,505,976,220.000214 | 94,390 |
pythondev | help | <@Junita> what? `nose` is a runner for `unittest.TestCase` cases, you can't write a dedicated test function and expect `nose` to discover it | 2017-09-21T06:44:31.000400 | Collette | pythondev_help_Collette_2017-09-21T06:44:31.000400 | 1,505,976,271.0004 | 94,391 |
pythondev | help | <@Collette> I don't really understand the distinction. In older pytest versions `usefixtures` is the only way to access a fixture in a test function. The result is the same. | 2017-09-21T06:44:52.000012 | Suellen | pythondev_help_Suellen_2017-09-21T06:44:52.000012 | 1,505,976,292.000012 | 94,392 |
pythondev | help | Without it you can't do it, with it you can. :confused: | 2017-09-21T06:45:07.000211 | Suellen | pythondev_help_Suellen_2017-09-21T06:45:07.000211 | 1,505,976,307.000211 | 94,393 |
pythondev | help | > Within a test module, functions and classes whose names match testMatch and TestCase subclasses with any name will be loaded and executed as tests
<https://nose.readthedocs.io/en/latest/usage.html> | 2017-09-21T06:46:03.000078 | Junita | pythondev_help_Junita_2017-09-21T06:46:03.000078 | 1,505,976,363.000078 | 94,394 |
pythondev | help | I mean, Iβve done it, the docs say it, so you definitely can | 2017-09-21T06:46:28.000118 | Junita | pythondev_help_Junita_2017-09-21T06:46:28.000118 | 1,505,976,388.000118 | 94,395 |
pythondev | help | hmm, i guess information in my head is outdated then | 2017-09-21T06:47:46.000009 | Collette | pythondev_help_Collette_2017-09-21T06:47:46.000009 | 1,505,976,466.000009 | 94,396 |
pythondev | help | but you can't define `setUp`/`tearDown` for these test functions, right? | 2017-09-21T06:47:57.000296 | Collette | pythondev_help_Collette_2017-09-21T06:47:57.000296 | 1,505,976,477.000296 | 94,397 |
pythondev | help | yeah maybe at some point in the past you couldnβt, itβs possible | 2017-09-21T06:48:00.000206 | Junita | pythondev_help_Junita_2017-09-21T06:48:00.000206 | 1,505,976,480.000206 | 94,398 |
pythondev | help | To my knowledge, no. If Iβm going to do `setUp` and `tearDown` Iβm going to just use a class | 2017-09-21T06:48:31.000012 | Junita | pythondev_help_Junita_2017-09-21T06:48:31.000012 | 1,505,976,511.000012 | 94,399 |
pythondev | help | Right | 2017-09-21T06:48:50.000251 | Collette | pythondev_help_Collette_2017-09-21T06:48:50.000251 | 1,505,976,530.000251 | 94,400 |
pythondev | help | From my experience, I pretty much always need fixtures/setUp :slightly_smiling_face: | 2017-09-21T06:49:11.000008 | Collette | pythondev_help_Collette_2017-09-21T06:49:11.000008 | 1,505,976,551.000008 | 94,401 |
pythondev | help | The only exception is test functions in which I test whatever is in a fixture/setUp method | 2017-09-21T06:49:29.000105 | Collette | pythondev_help_Collette_2017-09-21T06:49:29.000105 | 1,505,976,569.000105 | 94,402 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.