danzin, to python
@danzin@mastodon.social avatar

There's this very useful and widely used tool, @coveragepy, that creates HTML coverage reports and uses 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 .

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!

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

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

Do you use it? What could be improved?

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

nedbat, to random
@nedbat@hachyderm.io avatar

Hmm, I felt strongly enough about including tests in coverage measurements that I wrote about it twice, just a year apart...

https://nedbatchelder.com/blog/201908/dont_omit_tests_from_coverage.html
https://nedbatchelder.com/blog/202008/you_should_include_your_tests_in_coverage.html

hugovk,
@hugovk@mastodon.social avatar
pvonhellermannn, to random
@pvonhellermannn@mastodon.green avatar

I know Mastodon is designed to keep everything nice and to shield us from the horrors of the world, and that it is good for us to only look at cat pictures all day and cheer each other up, but honestly: sometimes i also think that that is just a lot of crap and everyone who turns away and continues with their nice privileged life as if all is ok is complicit

estelle,
@estelle@techhub.social avatar

@pvonhellermannn
The text pointed below may help. Sarah Aziza, through a stirring mix of personal reflection and philosophical reckoning, disabuses the Western witness of its self-gratifying power, instead – amid Israel’s openly broadcast yet unimpeded march towards genocide in Gaza – unmasking the impotence, deceit and hollowness that witnessing currently entails. More than a collective indictment or last-gasp scream of defiance into the void, Aziza’s own testimony guides the reader towards a form of witness no longer elevated in angelic, uncompromised distance, but instead manifest in the embodied, intimate, ego-displacing position of “sacrifice, mourning and resisting.”
https://jewishcurrents.org/the-work-of-the-witness

itnewsbot, to Insurance
@itnewsbot@schleuss.online avatar

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

coveragepy, to python
@coveragepy@hachyderm.io avatar

I'd like to do more measurements of real-world test suite running times.

Do you have a project with an easily runnable test suite that takes between 1 and 10 minutes to run and uses coverage? Ideally it could also be run without coverage measurement, and can run under Python 3.12.

TIA!

paulox,
@paulox@fosstodon.org avatar

@coveragepy your value is way too low.

You missed only one step:

$ coverage combine

And after that, I get a higher value:

$ coverage report --format=total --precision=6
78.587580

Here you can find the reference:
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#code-coverage

#Django #Test #Coverage

kristen_d, to abc
@kristen_d@mastodon.social avatar

Now THAT is a headline. Maybe ought to school their how to ditch the asinine and actually do their fucking jobs. is at stake, dipshits.

estelle, to meta
@estelle@techhub.social avatar

The CEO of , Mark , has personally and repeatedly thwarted initiatives to improve the wellbeing of teenagers on and , sometimes directly bypassing some of his most senior lieutenants, according to internal communications made public as part of an ongoing lawsuit against the company:
https://www.mass.gov/news/ag-campbell-files-lawsuit-against-meta-instagram-for-unfair-and-deceptive-practices-that-harm-young-people

estelle,
@estelle@techhub.social avatar

"The Jerusalem bureau has long reviewed all stories relating to and . Now, it’s helping shape the network’s coverage of the war."

"Every CNN journalist covering Israel and Palestine must submit their work for review by the news organization’s bureau in Jerusalem prior to publication, under a long-standing CNN policy."

One member of CNN’s staff described how the policy works in practice. “‘War-crime’ and ‘genocide’ are taboo words,” the person said. “Israeli bombings in Gaza will be reported as ‘blasts’ attributed to nobody, until the Israeli military weighs in to either accept or deny responsibility. Quotes and information provided by Israeli army and government officials tend to be approved quickly, while those from Palestinians tend to be heavily scrutinized and slowly processed.”

https://theintercept.com/2024/01/04/cnn-israel-gaza-idf-reporting/ @israel

estelle,
@estelle@techhub.social avatar
hugovk, to til
@hugovk@mastodon.social avatar
Nonilex, to random
@Nonilex@masto.ai avatar

Yeah; they effed up big-time.

Only just today, the @nytimes published an “editor’s note” on their misreporting:

“On Oct 17, The published news of an explosion at a hospital in Gaza City, leading its coverage w/claims by govt ofcls that an Israeli airstrike was the cause & that hundreds of people were dead or injured.


https://www.nytimes.com/2023/10/23/pageoneplus/editors-note-gaza-hospital-coverage.html?smid=nytcore-ios-share&referringSource=articleShare

Nonilex,
@Nonilex@masto.ai avatar

“The Times’s initial accounts attributed the claim of #Israeli responsibility to #Palestinian ofcls, & noted that the Israeli military said it was investigating the blast. However, the early versions of the #coverage — & the prominence it received in a #headline, #news alert & #socialmedia — relied too heavily on claims by #Hamas, & did not make clear those claims could not immediately be verified. The rpt left readers w/an incorrect impression about what was known &how credible the account was.

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 )

#magicWormhole #python #coverage

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/

#api #money #openbanking

DataDrivenMD, to random
@DataDrivenMD@fedified.com avatar

Just so we're all on the same page: it is illegal for insurance companies to deny coverage of the new COVID-19 booster. Furthermore, CVS, Walgreens, and eTrueNorth are contractually obligated to provide free COVID-19 testing and vaccines to uninsured persons. It's all right here:

https://www.cdc.gov/vaccines/programs/bridge/index.html

DataDrivenMD,
@DataDrivenMD@fedified.com avatar

What has changed: your private health insurer is not required to pay for out-of-network services. This simply means that you may need to get your booster through your regular doctor's office

https://www.kff.org/coronavirus-covid-19/issue-brief/what-happens-when-covid-19-emergency-declarations-end-implications-for-coverage-costs-and-access/#coverage-costs-and-payment

CelloMomOnCars, to climate
@CelloMomOnCars@mastodon.social avatar

"Every #newsroom in every community needs to think about #ClimateChange 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 #politics #coverage."

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

CelloMomOnCars, to random
@CelloMomOnCars@mastodon.social avatar

We really need to stop buying into the argument that are "radical" or "destructive". The opposite is true: the nature of the protests have been peaceful and, on the whole, pretty tame.

The idea that, say, sitting on a road is "radical", "extreme" and "criminal" came from a bunch of aligned think tanks, parroted by the media.
Reject them.

The framing needs to be: Fossil fuel companies are radical, extreme, criminal.


https://newrepublic.com/article/175488/meet-shadowy-global-network-vilifying-climate-protesters

CelloMomOnCars,
@CelloMomOnCars@mastodon.social avatar

"These core elements – grievances, demands, disruption, confrontation and spectacle – are present in nearly all protests.

[But] time and again, #coverage tends to headline the parts of the protest that are sensational and #disruptive.

And this neglects the political substance of the protests."

https://theconversation.com/media-coverage-of-campus-protests-tends-to-focus-on-the-spectacle-rather-than-the-substance-229172

This kind of coverage also plays into the false narrative that protesters are "radicals" or even "terrorists".
It enables that framing.

kevinbowen, to django
@kevinbowen@fosstodon.org avatar

As a pretty new #django 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 #pytest, getting rid of SimpleTestCase & TestCase.

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

eliashaeussler, to php German
@eliashaeussler@phpc.social avatar

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 ⏳

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

ricardoharvin, to random
@ricardoharvin@mstdn.social avatar

Climate change is an immediate threat to the majority of the world's population.

We need a local, regional, state, national, and international "moon shot" type of concentration of effort using available resources while developing and advancing new science and technologies to counteract the damage humans have caused.

Without this type of all-out, universal cooperation, human civilization, and perhaps humanity itself, are in imminent danger of extinction.

ricardoharvin,
@ricardoharvin@mstdn.social avatar

I partially retract an earlier statement, this is #local #SouthFlorida #news #coverage on #ClimateChange and our local #heat records being shattered.

Segments of this may have been #broadcast during normal #newscasts but, unfortunately, this full summary is provided via a secondary or tertiary outlet.

At least they're covering this news and sharing it in an understandable format.

#NBCNews #Channel6 #South #Florida

https://youtu.be/Q-8Iz6tkIx4

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

Should we use #coverage reports only for #unittest 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)

#question #codequality

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
#coverage #coding #quality

cazabon, to random

is weird. action makes it weirder. If you have perverse , you get perverse results.

An example.

Every spring, there are floods somewhere in North America. Maybe the Red River that flows up through North Dakota to Winnipeg and beyond. Maybe the winter snowpack is heavy and melts quickly in the Rockies, flooding out parts of B.C. Maybe torrential rains in Atlantic areas cause overland flooding throughout Quebec.

[...]

cazabon,

They call for to impose on increased insurance costs, or to mandate certain be available. Or they call for government to start issuing its own insurance, at nominal cost and covering high-risk events and insureds, to people who would otherwise have high commercial insurance costs.

And governments frequently take up these calls to action.

But they're making the .

[...]

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