danzin, to python
@danzin@mastodon.social avatar

There's this very useful and widely used #Python tool, @coveragepy, that creates HTML coverage reports and uses #JavaScript in them.

I have proposed a simple PR to fix a small issue in sorting columns in the reports: https://github.com/nedbat/coveragepy/pull/1768/files

However, I'm very bad at #JS.

The behavior is working as intended, but I can't shake the feeling that my JS code is awful in some way I can't see.

Could you take a quick look at the diff and point out anything that should be improved? TIA!

#coverage

rzeta0,
@rzeta0@mastodon.social avatar

@hugovk @danzin @coveragepy does this mean var will be deprecated?

danzin,
@danzin@mastodon.social avatar

@hugovk @coveragepy Thank you very much!

Changed var to let and that led me to finding a place I was var declaring a variable twice.

ewen, to python French
@ewen@mastodon.fedi.bzh avatar
meejah, to python
@meejah@mastodon.social avatar

Should I promote my tool "cuvner" more? https://cuvner.readthedocs.io/en/latest/

Do you use it? What could be improved?

tshirtman,
@tshirtman@mas.to avatar

@meejah didn't know about it, will give it a shot later 🙂.

blaise,
@blaise@fosstodon.org avatar

@meejah
#til
Thank you.
I'm fascinated by tests and coverage tools

hugovk, to python
@hugovk@mastodon.social avatar

@coveragepy can now use Python 3.12's new sys.monitoring module with much lower overhead.

On 3.12, it's about the same as if you were running tests without coverage enabled!

https://nedbatchelder.com/blog/202312/coveragepy_with_sysmonitoring.html

With 7.4.2, you can set COVERAGE_CORE=sysmon globally on your CI, and it'll only use it where available (Python 3.12 and 3.13 alpha), and use the default for 3.11 and older.

For example, @pillow is 9% - 27% faster!

https://github.com/python-pillow/Pillow/pull/7820

coveragepy,
@coveragepy@hachyderm.io avatar

@hugovk Note it's slower if you are using branch=True!

itnewsbot, to Insurance

Humana also using AI tool with 90% error rate to deny care, lawsuit claims - Enlarge / Signage is displayed outside the Humana Inc. office building ... - https://arstechnica.com/?p=1990918 #insurancecoverage #medicareadvantage #post-acutecare #unitedhealth #claimdenial #nursinghome #insurance #nhpredict #coverage #medicare #science #health #humana #ai

kristen_d, to abc
@kristen_d@mastodon.social avatar

Now THAT is a headline. Maybe #MSNBC #CBS #ABC #NYT #WAPO #MTP ought to school their #lazyjournalists how to ditch the asinine #horserace #coverage and actually do their fucking jobs. #Democracy is at stake, dipshits.

hugovk, to til
@hugovk@mastodon.social avatar
brianokken,
@brianokken@fosstodon.org avatar

@hugovk Thanks for writing this up

meejah, to python
@meejah@mastodon.social avatar

Decent coverage for fowl but still the last stretch to go -- usually "weird error cases" are the last to turn green.

Shown here is output from "cuv graph" (see https://meejah.ca/projects/cuvner )

blog, to money
@blog@shkspr.mobi avatar

Why is there no OpenBanking API for personal use?
https://shkspr.mobi/blog/2023/10/why-is-there-no-openbanking-api-for-personal-use/

The recent news that MoneyDashboard is suddenly shutting down has exposed a gap in the way OpenBanking works. It is simply impossible for a user to get read-only access to their own data without using an aggregator. And there are very few aggregators around.

Why is it impossible for me to get programmatic access to my own data?

There are two interlinked reasons which I'd like to discuss.

Background

OpenBanking is a brilliant idea encoded in an excellent standard wrapped in some very complex processes and with some rather unfair limitations.

OpenBanking presents a standardised API to allow read and write access to a financial account. So I could give a smartphone app read-only access to my credit card and let it automatically tell me when I've spent more than £50 on sausage rolls this week. Or I could add all my bank accounts to one service which would let me see my net worth. Or any of a hundred ideas.

I could also connect my accounts in such a way that when Bank Account A drop below £100, an OpenBanking API request is sent to Bank Account B to transfer some money to A.

Nifty!

Access

But here's the first problem. The only way you can get access to a bank's API is if you have a licence. And you only get a licence if you're a financial institution who can prove that they have robust security controls. Which means that individuals have to go through an aggregator. Or, in OpenBanking terms, an "Account Information Service Provider".

Some OpenBanking providers will let individuals play in a "sandbox" to test out the API. There are no real accounts and no real money, it's just a way to test how the API works.

I can see why that makes sense for write access. You don't want a user's unpatched Raspberry Pi suddenly sending all their money to Russia.

And I can see why that makes sense for organisations which deal with data from multiple people. One leak and everyone is exposed.

But I'm not convinced that it makes sense to deny an individual read-only API access to their own account. Sure, I might accidentally leak my own data - but the same risk exists if I download a PDF statement from my bank.

Coverage

The second problem is that not every OpenBanking consumer will talk to every OpenBanking provider.

For example, I have an account with Coventry Building society. They have an OpenBanking API which no one uses! They're not the largest financial institution in the UK, but have a fair few customers. And yet all the OpenBanking apps refuse to work with it.

So even if I did find an aggregator with an API, it may not work with all my financial institutions.

What's next?

As much as I love using someone else's website or app, sometimes there's nothing better than writing something bespoke.

I was using MoneyDashboard as an . I gave them read-only access to my accounts and then piggybacked off their API. But that's now closed.

Similarly, I was using Moneyed - which offered a personal OpenBanking API - but that shut down as well.

And now I can't find anything.

If you know of an Account Information Service Provider which provides read-only API access to connected accounts, please let me know!

https://shkspr.mobi/blog/2023/10/why-is-there-no-openbanking-api-for-personal-use/

CelloMomOnCars, to climate
@CelloMomOnCars@mastodon.social avatar

"Every in every community needs to think about not as a beat but as a through line involving everything we do. No corner of the newsroom is exempt—not business or culture, not sports or city hall.
On the national level, journalism has to figure out how to make climate change central to our ."

https://www.thenation.com/article/environment/climate-news-coverage-conference/

kevinbowen, to django
@kevinbowen@fosstodon.org avatar

As a pretty new learner(1+ yr), I've set myself up the task of re-writing the main apps as function-based views. Most tutorials start with CBVs, so I wanted to 'unravel' them. Additionally, I'm re-writing the tests for , getting rid of SimpleTestCase & TestCase.

Just finished re-writing the 1st of my projects' app & got 100% ✅ test 🥳 It's really been helping me learn a great deal. It's a good struggle.

simeon,
@simeon@indiehackers.social avatar

@kevinbowen Congrats on the rewrite!

How do you organise your method handlers? Do you have separate functions for GET, POST, etc. or do you check request.method a bunch of times in a single function?

I like how CBVs allow you to group a view’s method handlers.

I find myself using CBGVs less and less as I can’t remember how things are called, what I need to overwrite, manually instantiate, etc.

kevinbowen,
@kevinbowen@fosstodon.org avatar

@simeon Great questions!

I'll be paying more attention to these concerns going ahead.

Currently, I'm doing it two ways depending on the view, I guess:

  1. In separate functions.
  2. Something like "form = MessageForm(request.POST or None)" and checking "if form.is_valid()

Now you've got me possibly (over)thinking if I am keep these functions overly-simple 🙂 or what I'm dropping when converting to a FBV.

Back to the docs & source! Thanks for giving me more to think about.

eliashaeussler, to php German

During yesterday's at I upgraded my extension "form_consent" to TYPO3 v12. 🚀

It's so nice to have with high in place that give a great overview about potential compatibility issues. 💪

Expect a release soon ⏳

derickr,
@derickr@phpc.social avatar

@eliashaeussler Time to start testing the PHP 8.3 betas too ;-)

kevinbowen, to python
@kevinbowen@fosstodon.org avatar

I think we need to talk about the #python #coverage badge flair.

Only 21 pieces? sigh

I mean, we really want people to express themselves here. And, if they only wear the minimum....sigh

nedbat,
@nedbat@hachyderm.io avatar
kevinbowen,
@kevinbowen@fosstodon.org avatar

@nedbat And you've got some space between the badges, too. Looks good!

vansari, to NoStupidQuestions German
@vansari@phpc.social avatar

Should we use reports only for or also for integration and functional testing?

Should the test directory split into unit, integration and functional tests or should all tests in one root tests folder? (Both following the namespace rules)

Skoop,
@Skoop@phpc.social avatar

@vansari as always: it depends

as for the directories: yes, I would split up the different types of tests into separate directories, and also into different test suites, so you can run them independently.

coverage is a useful tool for all tests, but has less value for functional or integration tests imho. it is mostly a great way to figure out which parts of your code are not tested yet. As such, you can use coverage on all three types, but seperately, not combined.

vansari,
@vansari@phpc.social avatar

@Skoop this was also my first expectation for code coverage

I want to collect some other point of views at this topic

Thanks a lot

33dBm, to random German
@33dBm@lazysocial.de avatar

Messen an Antennenanlagen und PIM

Eine Einführung in die Messung von Antennenanlagen und in die Bewertung, Analyse und Vermeidung passiver Intermodulationen (PIM) mit spezieller Betrachtung verteilter Antennensysteme (DAS) und den Einflüssen von PIM auf verschiedenen Mobilfunkbändern

Version 1.09 vom 06.05.2023

#Mobilfunk #Antennen #Uplink #Intermodulation #PIM #Mischung #Koronaeffekt #Buch #DAS #Repeater #LTE #2G #3G #4G #5G #Installation #Coverage #Service

https://tkb-schmidt.de/MAA.pdf

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • GTA5RPClips
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • megavids
  • Leos
  • cisconetworking
  • lostlight
  • All magazines