GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Tests use magic numbers · Issue #85 · GoogleCloudPlatform/python-docs-samples

Tests use magic numbers #85

New issue
Copy link
New issue
Copy link
Closed
Closed
Tests use magic numbers#85
Copy link
Labels
🚨This issue needs some love.help wantedWe'd love to have community involvement on this issue.triage meI really want to be triaged.

Description

@waprin
waprin
opened on Sep 14, 2015
Issue body actions

https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/images/tests/test_guestbook.py

Code cleanup: HTTP requests should be named constants.

Others might feel that HTTP codes are well known enough to not be "magic". I think this would be slight code cleanup but if there's loud objections we can leave it as is.

httplib contains the constants so we can use those.

Activity

  1. theacodes
    added
    enhancement
    help wantedWe'd love to have community involvement on this issue.
    on Sep 16, 2015
  2. theacodes commented on Oct 10, 2016

    @theacodes
    theacodes
    on Oct 10, 2016
    Contributor
    More actions

    I'm closing this as won't fix, because HTTP codes are standardized enough to not be considered magic number IMO.

  3. theacodes
    closed this as completedon Oct 10, 2016
  4. yoshi-automation
    added
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Apr 7, 2020
  5. arbrown
    added a commit that references this issue on Nov 7, 2022

    chore(deps): update dependency google-cloud-monitoring to v2.0.1 (#85)

    2f1a4f4
  6. donmccasland
    added a commit that references this issue on Nov 8, 2022

    chore(deps): update dependency pytest to v6.2.3 (#85)

    466b593
  7. dandhlee
    added 2 commits that reference this issue on Nov 9, 2022

    chore(deps): update dependency pytest to v6.2.3 (#85)

    a7768bc

    chore(deps): update dependency google-cloud-monitoring to v2.0.1 (#85)

    46958c7
  8. donmccasland
    added 2 commits that reference this issue on Nov 11, 2022

    docs: add securitycenter prefix to samples, wrap published samples an…

    8bce842

    docs: standardize new tag with existing tags from other languages (#104)

    40fee09
  9. rsamborski
    added 2 commits that reference this issue on Nov 11, 2022

    chore(deps): update dependency cryptography to v3.4.4 (#85)

    633abcb

    chore(deps): update dependency cryptography to v3.4.4 (#85)

    391284a
  10. dandhlee
    added a commit that references this issue on Nov 14, 2022

    chore(deps): update dependency cryptography to v3.4.4 (#85)

    d957733
  11. telpirion
    added a commit that references this issue on Nov 16, 2022

    chore(deps): update dependency google-cloud-storage to v1.34.0 (#85)

    4ccbbe6
  12. dandhlee
    added a commit that references this issue on Nov 18, 2022

    chore(deps): update dependency google-cloud-storage to v1.34.0 (#85)

    d2671b7
  13. dandhlee
    added 2 commits that reference this issue on Jan 26, 2023

    docs: add securitycenter prefix to samples, wrap published samples an…

    ce77249

    docs: standardize new tag with existing tags from other languages (#104)

    44424cc
  14. Sita04
    added a commit that references this issue on Feb 7, 2023

    chore(deps): update dependency google-cloud-bigquery to v2.6.0 (#85)

    cbfe39b
  15. nicain
    added a commit that references this issue on Mar 1, 2023

    migrate code from googleapis/python-dlp (#9091)

    86b0054
  16. telpirion
    added 3 commits that reference this issue on Mar 13, 2023

    docs: add securitycenter prefix to samples, wrap published samples an…

    488b8f0

    docs: standardize new tag with existing tags from other languages (#104)

    bdbbeda

    migrate code from googleapis/python-dlp (#9091)

    b09bf5d
  17. MiaCY
    added a commit that references this issue on Apr 11, 2023

    chore(deps): update dependency pytest to v6.2.4 (#85)

    b70b6a8
  18. dandhlee
    added a commit that references this issue on Apr 22, 2023

    chore(deps): update dependency pytest to v6.2.4 (#85)

    8d2eba0
  19. Linchin
    added a commit that references this issue on Aug 18, 2025

    chore(deps): update dependency google-cloud-bigquery to v2.2.0 (#85)

    4fb1f49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.help wantedWe'd love to have community involvement on this issue.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.