Ricette fatte di richieste, un permesso per richiesta (#36, S3)
Otto ricette (controllo del profilo, storico, taggati, reel, storie di un account, raccolta in evidenza, post singolo, elenco dei seguiti) hanno una strada per richieste dirette accanto a quella con il browser. Ci vanno solo se ogni ruolo che servono è un'operazione configurata di richieste.<sito>.json: con Instagram nessuna lo è e Febe non costruisce il client del sito, quindi il comportamento con Instagram non cambia fino a S4. Ogni richiesta prende il suo permesso dal Governatore nella categoria di ciò che chiede (la prima pagina dei post conta come profilo); i segnali delle risposte vanno all'interruttore e fermano la ricetta prima di ogni altra richiesta. Se manca un valore o la pagina successiva, la ricetta torna alle pagine per quella volta e il motore controlla tutti e due i tetti. I tetti non cambiano: il dimezzamento delle storie viste è tolto perché toccava anche il browser e i «Su misura» salvati, e resta una domanda per Alberto prima di S4. Il simulatore ha --raccolta pagine|richieste con il costo delle operazioni separate di Instagram: sei simulazioni di 30 giorni senza superamenti. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4dcbd0b096
commit
63acae4e73
46 files changed
+3724
-136
No files matched your search
@@ -41,6 +41,19 @@ public sealed class EngineSettingsTests
|
||||
Assert.AreEqual(GesturePace.Slow, effective.Pace);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void AStoryViewIsARequestOrAStoryShownAndItsBudgetsStayAsTheyWere()
|
||||
{
|
||||
// Issue #36, S3: by requests one StoryView brings every story of an account. The budgets do not change in S3,
|
||||
// so that Instagram (still by the pages) and a saved «Su misura» behave as before; halving them is a question
|
||||
// for Alberto when Instagram goes by requests (S4).
|
||||
Assert.AreEqual(new Budget(50, 300), CautionProfile.Prudent.Budgets[ActionKind.StoryView]);
|
||||
Assert.AreEqual(new Budget(80, 500), CautionProfile.Balanced.Budgets[ActionKind.StoryView]);
|
||||
Assert.AreEqual(new Budget(120, 800), CautionProfile.Fast.Budgets[ActionKind.StoryView]);
|
||||
Assert.AreEqual(new Budget(240, 1600), CautionProfile.Limits.MaxBudget(ActionKind.StoryView), "«Su misura» stays within twice «Rapido».");
|
||||
Assert.IsTrue(CautionProfile.Prudent.Budgets[ActionKind.StoryView].PerHour >= new Febe.Core.Collection.Recipes.RecipeOptions().MinStoryBudget, "The viewer still has room for its minimum of stories.");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TheLimitsOfTheInterfaceAreEnforced()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user