Testing an app protected by Okta authorization code with PKCE flow

2022-04-29 Thread George Fischhof
Hi Folks, has anyone of you a working solution for testing an app protected by Okta authorization code with PKCE flow? Meaning to get a bearer token? I saw / read several articles about it on the net, and several hacks (that is not problem now ;) ), but it seems that neither of them works with Ok

Re: Popular Python Package 'ctx' Hijacked to Steal AWS Keys

2022-05-25 Thread George Fischhof
Turritopsis Dohrnii Teo En Ming ezt írta (időpont: 2022. máj. 25., Sze, 15:49): > Subject: Popular Python Package 'ctx' Hijacked to Steal AWS Keys > > Good day from Singapore, > > Sharing this article for more awareness. > > Article: Popular PyPI Package 'ctx' and PHP Library 'phpass' Hijacked >

Re: Definition of "property"

2021-06-02 Thread George Fischhof
Greg Ewing ezt írta (időpont: 2021. jún. 2., Sze, 4:01): > On 1/06/21 7:01 am, Alan Gauld wrote: > > That was the point, the OP said it was a book about OOP. > > Not a book about "OOP in Python". > > In that case it would be best to avoid the word, or give > a definition of the way he's using it,

Re: Making command-line args available to deeply-nested functions

2021-08-21 Thread George Fischhof
Loris Bennett ezt írta (időpont: 2021. aug. 20., P 17:54): > Julio Di Egidio writes: > > > On Friday, 20 August 2021 at 11:54:00 UTC+2, Loris Bennett wrote: > >> Hi, > >> > >> TL;DR: > >> > >> If I have a command-line argument for a program, what is the best way > >> of making this available to

Re: Making command-line args available to deeply-nested functions

2021-08-23 Thread George Fischhof
Loris Bennett ezt írta (időpont: 2021. aug. 23., H 19:26): > George Fischhof writes: > > > Loris Bennett ezt írta (időpont: 2021. aug. > > 20., P 17:54): > > > >> Julio Di Egidio writes: > >> > >> > On Friday, 20 August 2

Re: Making command-line args available to deeply-nested functions

2021-08-29 Thread George Fischhof
Loris Bennett ezt írta (időpont: 2021. aug. 26., Cs, 16:02): > George Fischhof writes: > > [snip (79 lines)] > > >> > Hi, > >> > > >> > Also you can give a try to click and / or typer packages. > >> > Putting args into environment va

Re: Making command-line args available to deeply-nested functions

2021-08-31 Thread George Fischhof
George Fischhof ezt írta (időpont: 2021. aug. 29., V, 21:27): > > > Loris Bennett ezt írta (időpont: 2021. aug. > 26., Cs, 16:02): > >> George Fischhof writes: >> >> [snip (79 lines)] >> >> >> > Hi, >> >> > >> >>

Re: How to add values from test steps in pytest excel report

2018-04-30 Thread George Fischhof
On 27 Apr 2018 9:49 am, "Sum" wrote: Hi, I am using python 2.7 and pytest version 3.2.1 I am using pytest excel plugin to run the pytest and generate test report in excel format. Step to install pytest excel : pip install pytest-excel I am running my pytest test using below : py.test --excelr

Re: Flask test generator code review?

2018-04-30 Thread George Fischhof
2018-04-18 12:41 GMT+02:00 Albert-Jan Roskam : > Hi, > > I am writing my first unittests for a Flask app. First modest goal is to > test whether a selected subset of the templates return the expected status > 200. > I am using a nose test generator in a class for this. Is the code below > the corr

Re: unittest.Testsuite and execution order

2018-04-30 Thread George Fischhof
On 20 Apr 2018 8:39 am, "Chris Angelico" wrote: On Fri, Apr 20, 2018 at 3:01 PM, Francesco Russo wrote: > On 18/04/18 20:26, Chris Angelico wrote: >> This is a bad idea. Each function that starts test_ should be >> completely independent. You should be able to run any one of them on >> its own (

[ANN] pluggable-info-monitor 0.2.1 released!

2018-05-29 Thread George Fischhof
Hi everyone, I’m very excited to announce the release of pluggable-info-monitor 0.2.1 First public release. You can download it form bitbucket: https://bitbucket.org/GeorgeFischhof/pluggable_info_monitor package index page: https://pypi.python.org/pypi/pluggable-info-monitor What is pluggable-

Re: command line utility for cups

2018-06-20 Thread George Fischhof
Peter Otten <__pete...@web.de> ezt írta (időpont: 2018. jún. 20., Sze 12:22): > Brian Oney via Python-list wrote: > > > Dear all, > > > > I am having trouble with argparse. I am trying to translate the following > > line to a sleek python script: > > > > lpr -o media=legal -o sides=two-sided-long-

Re: translating foreign data

2018-06-21 Thread George Fischhof
Peter Otten <__pete...@web.de> ezt írta (időpont: 2018. jún. 21., Cs, 22:45): > Ethan Furman wrote: > > > I need to translate numeric data in a string format into a binary > format. > > I know there are at least two different > > methods of representing parts less that 1, such as "10.5" and "10,5"

Re: how to get a value from CSV specific cell (A7) thanks

2018-09-01 Thread George Fischhof
HI, CSV has no cells, but you can use csv module from standard lib https://docs.python.org/3/library/csv.html and you can get 7th data from the first row (as A means the first row) __george__ ezt írta (időpont: 2018. szept. 1., Szo, 20:24): > how to get a value from CSV specific cell (A7) than

Re: Python for System Verilog testbench

2018-09-13 Thread George Fischhof
Bobby ezt írta (időpont: 2018. szept. 14., P 0:16): > > I have a very simple System Verilog (SV) adder as my DUT (device under > test). I would like to generate a test bench for this DUT based on the > 'requirements'. I wrote its (DUT) functions in simple text as > 'requirements' while followin

Re: mocking for get method in requests

2019-03-16 Thread George Fischhof
Shakti Kumar ezt írta (időpont: 2019. jan. 18., P, 18:18): > Hello people, > I noticed something weird (weird as per my current knowledge, though I know > its subjective) today. > > sample.py file > > -- > > import requests > def random_testing(): > out = requests.get('www.cisco.com') > a

Re: How to plot a data including date and time?

2019-08-14 Thread George Fischhof
Elliott Roper ezt írta (időpont: 2019. aug. 14., Sze 15:56): > On 14 Aug 2019, Elliott Roper wrote > (in article<0001hw.23044901039e772c7ca97...@news.giganews.com>): > > > On 14 Aug 2019, amirrezaheidary...@gmail.com wrote > > (in article<23d45668-fa47-4640-832a-5a5c64600...@googlegroups.com>

Re: What do you use for slides?

2019-11-16 Thread George Fischhof
Dan Stromberg ezt írta (időpont: 2019. nov. 15., P, 22:36): > I mostly use Libreoffice Impress, but I've also tried Google Slides. > > I don't think Impress does syntax highlighting out of the box, but there's > a plugin that claims to. > > Also, Google Slides purportedly supports highlighting ju

Re: Managing plug-ins

2020-05-27 Thread George Fischhof
DL Neil via Python-list ezt írta (időpont: 2020. máj. 26., K, 3:10): > On 26/05/20 11:35 AM, Benjamin Schollnick wrote: > > Did you ever find anything that met your requirements? > > > > If not, I have a prototype that I need to build out some more… > > > > https://github.com/bschollnick/PyPlugIn

Re: [Python-authors] Query

2021-01-11 Thread George Fischhof
Eduardo Emén Muñoz ezt írta (időpont: 2021. jan. 8., P, 17:23): > Dear Srs, > > I apologize if this is not the right place to ask this question, I am > Biologist teaching Python language (in spanish) focused in Molecular > Biology. > > People interested often ask me if my classes/cours

Re: Detect naming typos (AttributeError) in function names

2023-11-06 Thread George Fischhof via Python-list
Dieter Maurer via Python-list ezt írta (időpont: 2023. nov. 6., H, 19:13): > c.bu...@posteo.jp wrote at 2023-11-6 12:47 +: > >I would like to know how to detect (e.g. via a linter) typos in function > >names imported from another module. > > One option is a test suite (--> Python's "unittest"

Re: How to go about describing my software with a component diagram?

2024-12-24 Thread George Fischhof via Python-list
marc nicole via Python-list ezt írta (időpont: 2024. dec. 24., K 22:09): > The full python package (pypi) being represented as the outermost frame > here including the 4 sub-frames) > > Le mar. 24 déc. 2024 à 22:05, marc nicole a écrit : > > > I want to convey the idea that main.py (main algorit